[IMP] account: Make company_id not required on payment.term

This commit is contained in:
Laurent Smet
2019-02-28 09:08:29 +00:00
parent 7e4ca5e5d4
commit da0595dc9f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -2002,7 +2002,7 @@ class AccountPaymentTerm(models.Model):
active = fields.Boolean(default=True, help="If the active field is set to False, it will allow you to hide the payment terms without removing it.")
note = fields.Text(string='Description on the Invoice', translate=True)
line_ids = fields.One2many('account.payment.term.line', 'payment_id', string='Terms', copy=True, default=_default_line_ids)
company_id = fields.Many2one('res.company', string='Company', required=True, default=lambda self: self.env.user.company_id)
company_id = fields.Many2one('res.company', string='Company')
sequence = fields.Integer(required=True, default=10)
@api.constrains('line_ids')
+1 -1
View File
@@ -1832,7 +1832,7 @@
<group>
<group>
<field name="name"/>
<field name="company_id" invisible="1"/>
<field name="company_id" options="{'no_create': True}" groups="base.group_multi_company"/>
</group>
</group>
<label for="note"/>