diff --git a/ext/custom-addons/dp_custom/models/res_partner.py b/ext/custom-addons/dp_custom/models/res_partner.py index 55cf1779..e4a4efa5 100644 --- a/ext/custom-addons/dp_custom/models/res_partner.py +++ b/ext/custom-addons/dp_custom/models/res_partner.py @@ -272,6 +272,10 @@ class Partner(models.Model): elif self.env.context.get('sst_14', False): common_list = ['firstname', 'lastname', 'midname', 'email', 'company_odoo_id', 'portal_id', 'opt_out'] return common_list + elif self.env.context.get('delivery_partner', False): + common_list = ['firstname', 'lastname', 'midname', 'street', 'street2', 'zip', 'city', 'country_id', 'fax', + 'phone', 'mobile', 'email', 'portal_id'] + return common_list else: return super(Partner, self)._get_specified_fields() diff --git a/ext/custom-addons/dp_custom/models/sale.py b/ext/custom-addons/dp_custom/models/sale.py index 503a45fb..56d4f582 100644 --- a/ext/custom-addons/dp_custom/models/sale.py +++ b/ext/custom-addons/dp_custom/models/sale.py @@ -176,7 +176,7 @@ class SaleOrder(models.Model): if key.startswith('delivery_'): delivery_vals[key.replace('delivery_', '')] = vals[key] - delivery_vals = delivery_partner.with_context(sst_14=True).remove_not_specified_fields(delivery_vals) + delivery_vals = delivery_partner.with_context(delivery_partner=True).remove_not_specified_fields(delivery_vals) delivery_vals = delivery_partner.correct_values(delivery_vals) delivery_vals['parent_id'] = partner.id diff --git a/ext/custom-addons/dp_reports_sale/reports/sale.xml b/ext/custom-addons/dp_reports_sale/reports/sale.xml index 5bfab11f..cf47e47e 100644 --- a/ext/custom-addons/dp_reports_sale/reports/sale.xml +++ b/ext/custom-addons/dp_reports_sale/reports/sale.xml @@ -146,11 +146,13 @@
- - Zolltarif Nr.: - - -
+ + + Zolltarif Nr.: + + +
+