mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
Merge branch 'mig/15.0/stock_location_account_company' into '15.0-test'
mig/15.0/stock_location_account_company into 15.0-test See merge request hibou-io/hibou-odoo/suite!1404
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
<field name="global" eval="True"/>
|
||||
<field name="domain_force">['|',
|
||||
('company_id', '=', False),
|
||||
('company_id', 'child_of', [user.company_id.id]),
|
||||
('company_id', 'in', company_ids),
|
||||
]</field>
|
||||
</record>
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
<field name="global" eval="True"/>
|
||||
<field name="domain_force">['|',
|
||||
('company_id', '=', False),
|
||||
('company_id', 'child_of', [user.company_id.id]),
|
||||
('company_id', 'in', company_ids),
|
||||
]</field>
|
||||
</record>
|
||||
|
||||
|
||||
1
stock_location_account_company/__init__.py
Normal file
1
stock_location_account_company/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
from . import models
|
||||
21
stock_location_account_company/__manifest__.py
Normal file
21
stock_location_account_company/__manifest__.py
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
'name': 'Multi-company Stock Location Accounting',
|
||||
'summary': 'Multi-company Stock Location Accounting',
|
||||
'version': '15.0.1.0.0',
|
||||
'author': "Hibou Corp. <hello@hibou.io>",
|
||||
'category': 'Warehouse',
|
||||
'license': 'AGPL-3',
|
||||
'complexity': 'expert',
|
||||
'images': [],
|
||||
'website': "https://hibou.io",
|
||||
'description': """
|
||||
""",
|
||||
'depends': [
|
||||
'stock_account',
|
||||
],
|
||||
'demo': [],
|
||||
'data': [
|
||||
],
|
||||
'auto_install': False,
|
||||
'installable': True,
|
||||
}
|
||||
1
stock_location_account_company/models/__init__.py
Normal file
1
stock_location_account_company/models/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
from . import stock
|
||||
8
stock_location_account_company/models/stock.py
Normal file
8
stock_location_account_company/models/stock.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class StockLocation(models.Model):
|
||||
_inherit = 'stock.location'
|
||||
|
||||
valuation_in_account_id = fields.Many2one('account.account', company_dependent=True)
|
||||
valuation_out_account_id = fields.Many2one('account.account', company_dependent=True)
|
||||
Reference in New Issue
Block a user