mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
[9.0][REW] rma_account: adapt.
This commit is contained in:
committed by
JasminSForgeFlow
parent
003203be4a
commit
610c5b6524
@@ -20,9 +20,10 @@ class RmaOrder(models.Model):
|
||||
invoices = rec.mapped('rma_line_ids.invoice_id')
|
||||
rec.invoice_count = len(invoices)
|
||||
|
||||
add_invoice_id = fields.Many2one('account.invoice', string='Add Invoice',
|
||||
ondelete='set null', readonly=True,
|
||||
states={'draft': [('readonly', False)]})
|
||||
add_invoice_id = fields.Many2one(
|
||||
comodel_name='account.invoice', string='Add Invoice',
|
||||
ondelete='set null', readonly=True,
|
||||
)
|
||||
invoice_refund_count = fields.Integer(
|
||||
compute=_compute_invoice_refund_count, string='# of Refunds')
|
||||
invoice_count = fields.Integer(
|
||||
|
||||
Reference in New Issue
Block a user