allow entry of intrastat_id even if there is no lot
							parent
							
								
									a602a65275
								
							
						
					
					
						commit
						85bfc5dc0c
					
				|  | @ -62,8 +62,8 @@ class AccountInvoiceLine(models.Model): | ||||||
|                 self.env['stock.production.lot'].browse([lot_id.id]).write({ |                 self.env['stock.production.lot'].browse([lot_id.id]).write({ | ||||||
|                     'intrastat_id': vals.get('intrastat_id') |                     'intrastat_id': vals.get('intrastat_id') | ||||||
|                 }) |                 }) | ||||||
|             elif vals.get('intrastat_id', False) and not lot_id: |             # elif vals.get('intrastat_id', False) and not lot_id: | ||||||
|                 raise UserError(_('Der Intrastrat Code kann nur gesetzt werden wenn ein Lot angegeben wurde.')) |             #     raise UserError(_('Der Intrastrat Code kann nur gesetzt werden wenn ein Lot angegeben wurde.')) | ||||||
|         return res |         return res | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue