clinic/netforce_clinic/models/account_tax_component.py

30 lines
701 B
Python

from netforce.model import Model, fields
class TaxComponent(Model):
_inherit="account.tax.component"
_fields={
"sequence": fields.Selection([
["1","1"],
["2","2"],
["3","3"],
["4","4"],
["4.1.1","4.1.1"],
["4.1.2","4.1.2"],
["4.1.3","4.1.3"],
["4.1.4","4.1.4"],
["4.2.1","4.2.1"],
["4.2.2","4.2.2"],
["4.2.3","4.2.3"],
["4.2.4","4.2.4"],
["4.2.5","4.2.5"],
["5","5"],
["6","6"],
],"Sequence"), #report sequence
}
_defaults={
'sequence': 5,
}
TaxComponent.register()