changeset 97e54116ded8 in modules/account_stock_continental:default
details: 
https://hg.tryton.org/modules/account_stock_continental?cmd=changeset;node=97e54116ded8
description:
        Add domain against closed account

        issue8917
        review262641002
diffstat:

 product.py |  10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diffs (83 lines):

diff -r 0781fb97a0c9 -r 97e54116ded8 product.py
--- a/product.py        Fri Dec 06 17:33:46 2019 +0100
+++ b/product.py        Sat Dec 28 17:48:50 2019 +0100
@@ -28,6 +28,7 @@
     account_stock = fields.MultiValue(fields.Many2One(
             'account.account', "Account Stock",
             domain=[
+                ('closed', '!=', True),
                 ('type.stock', '=', True),
                 ('company', '=', Eval('context', {}).get('company', -1)),
                 ],
@@ -40,6 +41,7 @@
     account_stock_supplier = fields.MultiValue(fields.Many2One(
             'account.account', "Account Stock Supplier",
             domain=[
+                ('closed', '!=', True),
                 ('type.stock', '=', True),
                 ('company', '=', Eval('context', {}).get('company', -1)),
                 ],
@@ -52,6 +54,7 @@
     account_stock_customer = fields.MultiValue(fields.Many2One(
             'account.account', "Account Stock Customer",
             domain=[
+                ('closed', '!=', True),
                 ('type.stock', '=', True),
                 ('company', '=', Eval('context', {}).get('company', -1)),
                 ],
@@ -64,6 +67,7 @@
     account_stock_production = fields.MultiValue(fields.Many2One(
             'account.account', "Account Stock Production",
             domain=[
+                ('closed', '!=', True),
                 ('type.stock', '=', True),
                 ('company', '=', Eval('context', {}).get('company', -1)),
                 ],
@@ -76,6 +80,7 @@
     account_stock_lost_found = fields.MultiValue(fields.Many2One(
             'account.account', "Account Stock Lost and Found",
             domain=[
+                ('closed', '!=', True),
                 ('type.stock', '=', True),
                 ('company', '=', Eval('context', {}).get('company', -1)),
                 ],
@@ -124,6 +129,7 @@
     account_stock = fields.Many2One(
         'account.account', "Account Stock",
         domain=[
+            ('closed', '!=', True),
             ('type.stock', '=', True),
             ('type.statement', '=', 'balance'),
             ('company', '=', Eval('company', -1)),
@@ -132,6 +138,7 @@
     account_stock_supplier = fields.Many2One(
         'account.account', "Account Stock Supplier",
         domain=[
+            ('closed', '!=', True),
             ('type.stock', '=', True),
             ('type.statement', '=', 'income'),
             ('company', '=', Eval('company', -1)),
@@ -140,6 +147,7 @@
     account_stock_customer = fields.Many2One(
         'account.account', "Account Stock Customer",
         domain=[
+            ('closed', '!=', True),
             ('type.stock', '=', True),
             ('type.statement', '=', 'income'),
             ('company', '=', Eval('company', -1)),
@@ -148,6 +156,7 @@
     account_stock_production = fields.Many2One(
         'account.account', "Account Stock Production",
         domain=[
+            ('closed', '!=', True),
             ('type.stock', '=', True),
             ('type.statement', '=', 'income'),
             ('company', '=', Eval('company', -1)),
@@ -156,6 +165,7 @@
     account_stock_lost_found = fields.Many2One(
         'account.account', "Account Stock Lost and Found",
         domain=[
+            ('closed', '!=', True),
             ('type.stock', '=', True),
             ('type.statement', '=', 'income'),
             ('company', '=', Eval('company', -1)),

Reply via email to