diff --git a/ext/custom-addons/dp_custom/models/res_partner.py b/ext/custom-addons/dp_custom/models/res_partner.py index 2413487e..f2cdc741 100644 --- a/ext/custom-addons/dp_custom/models/res_partner.py +++ b/ext/custom-addons/dp_custom/models/res_partner.py @@ -80,13 +80,14 @@ class Partner(models.Model): 'Sobald das Unternehmen manuell zugewiesen wurde, ' 'wird das Flag wieder entfernt') line_ids = fields.Many2many(comodel_name='res.line', string='Produktionslinien') - portal_id = fields.Char(string='Portal-ID') + portal_id = fields.Char(string='Portal-ID',copy=False) partner_sector_id = fields.Many2one(comodel_name='res.partner.sector', string='Branche') active = fields.Boolean(track_visibility='onchange') portal_export_pending = fields.Boolean(string='Portal Export ausständig') warn_portal_date = fields.Boolean(compute='_get_warn_portal_date', store=False, default=False) date_vat_check = fields.Date(string='Datum der letzten UID-Prüfung') warn_vat_date = fields.Boolean(compute='_get_warn_date', store=False, default=False) + vat = fields.Char(default='',copy=False) collective_bill = fields.Boolean(string='Sammelrechnung', default=True) country_id = fields.Many2one('res.country', string='Country', ondelete='restrict', default=_default_country_id) commission_account_ids = fields.Many2many(comodel_name='commission.account', string='Provisionsempfänger') diff --git a/ext/custom-addons/dp_custom/models/sale.py b/ext/custom-addons/dp_custom/models/sale.py index 113532b7..e35aed85 100644 --- a/ext/custom-addons/dp_custom/models/sale.py +++ b/ext/custom-addons/dp_custom/models/sale.py @@ -453,6 +453,7 @@ class SaleOrder(models.Model): lot_attachment_values = [] lot = self.env['stock.production.lot'].create({ 'name': vals['lot_id']['name'], + 'short_text': vals['lot_id']['short_text'], 'assembled': vals['lot_id'].get('assembled',False), 'product_id': vals['product_id'], 'weight': vals['lot_id'].get('weight'), diff --git a/ext/custom-addons/dp_custom/models/stock.py b/ext/custom-addons/dp_custom/models/stock.py index f6379afc..348d53b6 100644 --- a/ext/custom-addons/dp_custom/models/stock.py +++ b/ext/custom-addons/dp_custom/models/stock.py @@ -35,6 +35,7 @@ class StockProductionLot(models.Model): help="Wenn vorhanden, wird dieses Bild in den Angeboten/Aufträgen angedruckt") image_medium = fields.Binary("Produktbild (resized)", attachment=True, help="Produktbild 'resized' auf 128x128") + short_text = fields.Text() @api.model def create(self, vals): diff --git a/ext/custom-addons/dp_custom/views/stock_views.xml b/ext/custom-addons/dp_custom/views/stock_views.xml index b207fb61..bd34f12e 100644 --- a/ext/custom-addons/dp_custom/views/stock_views.xml +++ b/ext/custom-addons/dp_custom/views/stock_views.xml @@ -6,15 +6,18 @@ stock.production.lot +
+ +
+ + + -
- -