Prechádzať zdrojové kódy

Módulo que agrega fecha de pedido y descrption de sale line en MRP.

sebas 3 rokov pred
rodič
commit
f0e50c5e45
2 zmenil súbory, kde vykonal 2 pridanie a 3 odobranie
  1. 1 2
      models/mrp_production.py
  2. 1 1
      views/mrp_production.xml

+ 1 - 2
models/mrp_production.py

@@ -14,9 +14,8 @@ class MrpProduction(models.Model):
         related='move_prod_id.procurement_id.sale_line_id')
     mrp_machine_id = fields.Many2one(related='sale_line_id.mrp_machine_id',
         string='Maquina', store=True)
-    # product_name = fields.Many2one(related='sale_line_id.name',
-    #     string='Producto a Fabricar', store=True)
     partner_id = fields.Many2one(related='sale_id.partner_id',
         string='Customer', store=True)
     date_order = fields.Datetime(related='sale_id.date_order',
         string='Fecha del Pedido', store=True)
+    product_name=fields.Text(String='Descripción', related='sale_line_id.name', store=True)

+ 1 - 1
views/mrp_production.xml

@@ -15,7 +15,7 @@
             </field>
             <field name="origin" position="after">
                 <field name="date_order" string="Fecha de Pedido"/>
-                <!-- <field name="product_name" string="Producto a Fabricar"/> -->
+                <field name="product_name" string="Producto a Fabricar"/>
             </field>
         </field>
     </record>