diff --git a/ext/custom-addons/dp_custom/models/account.py b/ext/custom-addons/dp_custom/models/account.py index d207044d..bc6bb375 100644 --- a/ext/custom-addons/dp_custom/models/account.py +++ b/ext/custom-addons/dp_custom/models/account.py @@ -83,6 +83,11 @@ class AccountInvoice(models.Model): layout_category_id = fields.Many2one('sale.layout_category', related='invoice_line_ids.layout_category_id', string='Section') + editor_id = fields.Many2one('res.users', string='Rechnungsbearbeiter', + default=lambda self: self.env.user if self.env.user.editor_name else '', + domain=[('editor_name', '!=', '')],track_visibility='onchange') + + @api.multi @api.onchange('partner_shipping_id') def onchange_partner_shipping_id(self): diff --git a/ext/custom-addons/dp_custom/views/account_views.xml b/ext/custom-addons/dp_custom/views/account_views.xml index 43511d3d..990bca1a 100644 --- a/ext/custom-addons/dp_custom/views/account_views.xml +++ b/ext/custom-addons/dp_custom/views/account_views.xml @@ -14,6 +14,10 @@