[IMP] Add SCSS SLOC measure

pull/2608/head
KevinKhao 2021-05-31 23:54:56 +02:00 committed by Florian da Costa
parent e4e22e080e
commit 394ea040c6
2 changed files with 5 additions and 0 deletions

View File

@ -36,6 +36,7 @@ class IrModuleModule(models.Model):
js_code_qty = fields.Integer(string="JS Code Quantity", readonly=True)
css_code_qty = fields.Integer(string="CSS Code Quantity", readonly=True)
scss_code_qty = fields.Integer(string="SCSS Code Quantity", readonly=True)
# Overloadable Section
@api.model
@ -56,6 +57,7 @@ class IrModuleModule(models.Model):
".xml": {"code": "xml_code_qty"},
".js": {"code": "js_code_qty"},
".css": {"code": "css_code_qty"},
".scss": {"code": "scss_code_qty"},
}
@api.model
@ -68,6 +70,7 @@ class IrModuleModule(models.Model):
"xml_code_qty": 0,
"js_code_qty": 0,
"css_code_qty": 0,
"scss_code_qty": 0,
}
@api.model

View File

@ -22,6 +22,7 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
<field name="xml_code_qty" />
<field name="js_code_qty" />
<field name="css_code_qty" />
<field name="scss_code_qty" />
</group>
<group string="Type and Authors">
<field name="author_ids" widget="many2many_tags" />
@ -39,6 +40,7 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
<field name="xml_code_qty" type="measure" />
<field name="js_code_qty" type="measure" />
<field name="css_code_qty" type="measure" />
<field name="scss_code_qty" type="measure" />
</pivot>
</field>
</record>