From de0cf3f4500f28ae382d8c8e1abd2cdb6b7890a5 Mon Sep 17 00:00:00 2001 From: sinergia Date: Sun, 30 Jul 2023 21:32:28 -0500 Subject: [PATCH] =?UTF-8?q?fix:=20Se=20quita=20cuenta=20anal=C3=ADtica=20e?= =?UTF-8?q?n=20factura=20como=20requerida?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- invoice.py | 2 +- sale.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/invoice.py b/invoice.py index 6539ba9..3340340 100644 --- a/invoice.py +++ b/invoice.py @@ -15,7 +15,7 @@ class Invoice(metaclass=PoolMeta): } - account_analytic = fields.Many2One('analytic_account.account', 'Analytic Account', required=True, + account_analytic = fields.Many2One('analytic_account.account', 'Analytic Account', domain=[('type', '=', 'normal')], states=_states) diff --git a/sale.py b/sale.py index 0dd2ce0..49836fc 100644 --- a/sale.py +++ b/sale.py @@ -15,6 +15,7 @@ class Sale(metaclass=PoolMeta): domain=[ ('type', '=', 'normal'), ]) + class SaleLine(metaclass=PoolMeta): 'Sale Line Analytic Operation' __name__ = 'sale.line'