mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
[IMP]name get when filling form sale order lines
This commit is contained in:
@@ -33,8 +33,10 @@ class SaleOrderLine(models.Model):
|
|||||||
if self.env.context.get('rma'):
|
if self.env.context.get('rma'):
|
||||||
for sale in self:
|
for sale in self:
|
||||||
if sale.order_id.name:
|
if sale.order_id.name:
|
||||||
res.append((sale.id, "%s %s qty:%s" % (
|
res.append((sale.id, "%s %s, %s qty:%s" % (
|
||||||
sale.order_id.name,
|
sale.order_id.name,
|
||||||
|
" ".join(str(x) for x in [
|
||||||
|
inv.number for inv in sale.order_id.invoice_ids]),
|
||||||
sale.product_id.name, sale.product_uom_qty)))
|
sale.product_id.name, sale.product_uom_qty)))
|
||||||
else:
|
else:
|
||||||
res.append(super(SaleOrderLine, sale).name_get()[0])
|
res.append(super(SaleOrderLine, sale).name_get()[0])
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<group name="main_info" position="inside">
|
<group name="main_info" position="inside">
|
||||||
<field name="sale_line_id"
|
<field name="sale_line_id"
|
||||||
|
context="{'rma': True}"
|
||||||
options="{'no_create': True}"/>
|
options="{'no_create': True}"/>
|
||||||
</group>
|
</group>
|
||||||
<group name="quantities" position="inside">
|
<group name="quantities" position="inside">
|
||||||
|
|||||||
Reference in New Issue
Block a user