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),
|
line.price_unit, self.currency_id, round=False),
|
||||||
'quantity': qty,
|
'quantity': qty,
|
||||||
'discount': 0.0,
|
'discount': 0.0,
|
||||||
'account_analytic_id': line.analytic_account_id.id,
|
|
||||||
'rma_line_ids': [(4, line.id)],
|
'rma_line_ids': [(4, line.id)],
|
||||||
}
|
}
|
||||||
return data
|
return data
|
||||||
|
|||||||
@@ -70,8 +70,8 @@
|
|||||||
domain="[('type', '=', 'supplier'),
|
domain="[('type', '=', 'supplier'),
|
||||||
('partner_id', '=', partner_id)]"
|
('partner_id', '=', partner_id)]"
|
||||||
attrs="{'readonly': [('state','not in',['draft'])],
|
attrs="{'readonly': [('state','not in',['draft'])],
|
||||||
'invisible': ['|', ('state', '=', 'done'),
|
'invisible': ['|', ('state', '=', 'paid'),
|
||||||
('type', '=', 'in_invoice')]}" class="oe_edit_only"
|
('type', '=', 'out_invoice')]}" class="oe_edit_only"
|
||||||
options="{'no_create': True}"/>
|
options="{'no_create': True}"/>
|
||||||
</field>
|
</field>
|
||||||
</field>
|
</field>
|
||||||
@@ -88,8 +88,8 @@
|
|||||||
domain="[('type', '=', 'customer'),
|
domain="[('type', '=', 'customer'),
|
||||||
('partner_id', '=', partner_id)]"
|
('partner_id', '=', partner_id)]"
|
||||||
attrs="{'readonly': [('state','not in',['draft'])],
|
attrs="{'readonly': [('state','not in',['draft'])],
|
||||||
'invisible': ['|', ('state', '=', 'done'),
|
'invisible': ['|', ('state', '=', 'paid'),
|
||||||
('type', '=', 'out_invoice')]}" class="oe_edit_only"
|
('type', '=', 'in_invoice')]}" class="oe_edit_only"
|
||||||
options="{'no_create': True}"/>
|
options="{'no_create': True}"/>
|
||||||
</field>
|
</field>
|
||||||
</field>
|
</field>
|
||||||
|
|||||||
Reference in New Issue
Block a user