portal_id, vat copy=False; short_text (prepare for printout invoice with short_text);
							parent
							
								
									e3c94f3a76
								
							
						
					
					
						commit
						51e7fcf0c0
					
				|  | @ -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') | ||||
|  |  | |||
|  | @ -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'), | ||||
|  |  | |||
|  | @ -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): | ||||
|  |  | |||
|  | @ -6,15 +6,18 @@ | |||
|         <field name="model">stock.production.lot</field> | ||||
|         <field name="inherit_id" ref="stock.view_production_lot_form"/> | ||||
|         <field name="arch" type="xml"> | ||||
|             <div class="oe_title" position="before"> | ||||
|                 <field name="image_medium" widget="image" class="oe_avatar"/> | ||||
|             </div> | ||||
|             <field name="product_id" position="after"> | ||||
|                 <field name="short_text" string="Kurztext"/> | ||||
|             </field> | ||||
|             <field name="ref" position="after"> | ||||
|                 <field name="assembled" string="Zusammengebaut"/> | ||||
|                 <field name="weight"/> | ||||
|                 <field name="intrastat_id" options="{'no_quick_create':True}"/> | ||||
|                 <field name="notes"/> | ||||
|             </field> | ||||
|             <div class="oe_title" position="before"> | ||||
|                 <field name="image_medium" widget="image" class="oe_avatar"/> | ||||
|             </div> | ||||
|         </field> | ||||
|     </record> | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue