Add multicompany control in tax fields on product and category product

This commit is contained in:
Bernat Brunet Torruella 2017-07-12 12:43:51 +02:00
parent 96c3df3e55
commit dcadea05a2
2 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,35 @@
diff -r dfbce32f79c5 product.py
--- a/modules/account_product/product.py Sun Mar 01 19:19:20 2015 +0100
+++ b/modules/account_product/product.py Wed Jul 12 12:42:53 2017 +0200
@@ -74,6 +74,7 @@
domain=[('parent', '=', None), ['OR',
('group', '=', None),
('group.kind', 'in', ['sale', 'both'])],
+ ('company', '=', Eval('context', {}).get('company', -1)),
],
states={
'invisible': (~Eval('context', {}).get('company')
@@ -85,6 +86,7 @@
domain=[('parent', '=', None), ['OR',
('group', '=', None),
('group.kind', 'in', ['purchase', 'both'])],
+ ('company', '=', Eval('context', {}).get('company', -1)),
],
states={
'invisible': (~Eval('context', {}).get('company')
@@ -225,6 +227,7 @@
domain=[('parent', '=', None), ['OR',
('group', '=', None),
('group.kind', 'in', ['sale', 'both'])],
+ ('company', '=', Eval('context', {}).get('company', -1)),
],
states={
'invisible': (~Eval('context', {}).get('company')
@@ -235,6 +238,7 @@
domain=[('parent', '=', None), ['OR',
('group', '=', None),
('group.kind', 'in', ['purchase', 'both'])],
+ ('company', '=', Eval('context', {}).get('company', -1)),
],
states={
'invisible': (~Eval('context', {}).get('company')

1
series
View File

@ -32,6 +32,7 @@ sale_23d0b5a3ceb1.patch
stock_supply_780a8aaeaa78.patch
timesheet_f8c45f1b4d7d.patch
sale_fix_invoiced_quantity_calculation.diff
multicompany_account_product.diff
issue7881002_1.diff
country.diff