[IMP] account: Make company_id not required on payment.term
This commit is contained in:
@@ -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')
|
||||
|
||||
@@ -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"/>
|
||||
|
||||
Reference in New Issue
Block a user