mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
[FIX] issue of 'Add from RMA Line' in Customer/Vendor invoice
This commit is contained in:
committed by
ahenriquez
parent
8ded2c6c76
commit
7841120c92
@@ -35,7 +35,6 @@ class AccountInvoice(models.Model):
|
||||
line.price_unit, self.currency_id, round=False),
|
||||
'quantity': qty,
|
||||
'discount': 0.0,
|
||||
'account_analytic_id': line.analytic_account_id.id,
|
||||
'rma_line_ids': [(4, line.id)],
|
||||
}
|
||||
return data
|
||||
|
||||
@@ -70,8 +70,8 @@
|
||||
domain="[('type', '=', 'supplier'),
|
||||
('partner_id', '=', partner_id)]"
|
||||
attrs="{'readonly': [('state','not in',['draft'])],
|
||||
'invisible': ['|', ('state', '=', 'done'),
|
||||
('type', '=', 'in_invoice')]}" class="oe_edit_only"
|
||||
'invisible': ['|', ('state', '=', 'paid'),
|
||||
('type', '=', 'out_invoice')]}" class="oe_edit_only"
|
||||
options="{'no_create': True}"/>
|
||||
</field>
|
||||
</field>
|
||||
@@ -88,8 +88,8 @@
|
||||
domain="[('type', '=', 'customer'),
|
||||
('partner_id', '=', partner_id)]"
|
||||
attrs="{'readonly': [('state','not in',['draft'])],
|
||||
'invisible': ['|', ('state', '=', 'done'),
|
||||
('type', '=', 'out_invoice')]}" class="oe_edit_only"
|
||||
'invisible': ['|', ('state', '=', 'paid'),
|
||||
('type', '=', 'in_invoice')]}" class="oe_edit_only"
|
||||
options="{'no_create': True}"/>
|
||||
</field>
|
||||
</field>
|
||||
|
||||
Reference in New Issue
Block a user