add field 'assembled' to LOT

develop
Andreas Osim 2018-09-03 10:52:59 +02:00
parent 62e07dd6a5
commit ce46936b56
2 changed files with 2 additions and 0 deletions

View File

@ -25,6 +25,7 @@ from odoo import fields, models, api, tools
class StockProductionLot(models.Model): class StockProductionLot(models.Model):
_inherit = 'stock.production.lot' _inherit = 'stock.production.lot'
assembled = fields.Boolean(string='Zusammengebaut')
notes = fields.Text() notes = fields.Text()
weight = fields.Float(string='Gewicht') weight = fields.Float(string='Gewicht')
intrastat_id = fields.Many2one(comodel_name='report.intrastat.code', string='Intrastat Nummer (Code)') intrastat_id = fields.Many2one(comodel_name='report.intrastat.code', string='Intrastat Nummer (Code)')

View File

@ -7,6 +7,7 @@
<field name="inherit_id" ref="stock.view_production_lot_form"/> <field name="inherit_id" ref="stock.view_production_lot_form"/>
<field name="arch" type="xml"> <field name="arch" type="xml">
<field name="ref" position="after"> <field name="ref" position="after">
<field name="assembled" string="Zusammengebaut"/>
<field name="weight"/> <field name="weight"/>
<field name="intrastat_id"/> <field name="intrastat_id"/>
<field name="notes"/> <field name="notes"/>