mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
Proxy fields defaults with lambda to allow inheritance
This commit is contained in:
committed by
ahenriquez
parent
9d8d282beb
commit
dfd409fa3e
@@ -43,7 +43,7 @@ class RmaOrderLine(models.Model):
|
||||
|
||||
invoice_address_id = fields.Many2one(
|
||||
'res.partner', string='Partner invoice address',
|
||||
default=_default_invoice_address,
|
||||
default=lambda self: self._default_invoice_address(),
|
||||
readonly=True, states={'draft': [('readonly', False)]},
|
||||
help="Invoice address for current rma order.",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user