Skip to content
Snippets Groups Projects
Commit bbccaf91 authored by jordan's avatar jordan
Browse files

[fix] move defaut get payment term in cotiz_aura

parent f8989798
Branches
No related tags found
No related merge requests found
......@@ -10,19 +10,6 @@ class ScopCotisation(models.AbstractModel):
_name = "scop.cotisation"
_description = "Base des cotisations"
@api.model
def default_get(self, fields):
"""
Attribue la valeur des conditions de paiments par
défault à la base de cotisation
:param fields:
:return:
"""
res = super(ScopCotisation, self).default_get(fields)
res['payment_term_id'] = self.env.user.company_id.\
contribution_default_payment_term_id.id
return res
year = fields.Selection(
[(year, str(year)) for year in range(
fields.Datetime.now().year - 1, fields.Datetime.now().year + 2)],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment