Fall 5430: Änderungswünsche - Andruck Zolltarifnummer
							parent
							
								
									41446a14ee
								
							
						
					
					
						commit
						5c03797092
					
				|  | @ -131,11 +131,16 @@ class AccountInvoice(models.Model): | |||
|         self.ensure_one() | ||||
|         info = "Bei folgenden Produkten fehlt die Zolltarifnummer:\n" | ||||
|         intrastrat_not_set = False | ||||
|         position = 1 | ||||
|         for invoice_line in self.invoice_line_ids: | ||||
|             if invoice_line.product_id and invoice_line.product_id.type != 'service': | ||||
|                 if not invoice_line.intrastat_id and not invoice_line.hide_intrastat_code: | ||||
|                     info += invoice_line.name + "\n" | ||||
|                     info += "Zeile: "+str(position) | ||||
|                     if invoice_line.product_id.default_code: | ||||
|                         info += "\tProduktcode: " + invoice_line.product_id.default_code | ||||
|                     info += "\n" | ||||
|                     intrastrat_not_set = True | ||||
|             position += 1 | ||||
|         if intrastrat_not_set: | ||||
|             action = self.env.ref('dp_custom.action_wizard_confirm_print_invoice').read()[0] | ||||
|             action['context'] = str({"default_info": info, "invoice_ids": self.env.context.get("active_ids")}) | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue