From 4d5223327d0b0d1c8b1e97de5cb2206179341069 Mon Sep 17 00:00:00 2001 From: Jared Kipe Date: Thu, 17 Oct 2019 08:26:23 -0700 Subject: [PATCH] NEW `stock_location_account_company` Company specific accounts per location for 12.0 --- stock_location_account_company/__init__.py | 1 + .../__manifest__.py | 21 +++++++++++++++++++ .../models/__init__.py | 1 + .../models/stock.py | 8 +++++++ 4 files changed, 31 insertions(+) create mode 100644 stock_location_account_company/__init__.py create mode 100644 stock_location_account_company/__manifest__.py create mode 100644 stock_location_account_company/models/__init__.py create mode 100644 stock_location_account_company/models/stock.py diff --git a/stock_location_account_company/__init__.py b/stock_location_account_company/__init__.py new file mode 100644 index 00000000..0650744f --- /dev/null +++ b/stock_location_account_company/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/stock_location_account_company/__manifest__.py b/stock_location_account_company/__manifest__.py new file mode 100644 index 00000000..a223e877 --- /dev/null +++ b/stock_location_account_company/__manifest__.py @@ -0,0 +1,21 @@ +{ + 'name': 'Multi-company Stock Location Accounting', + 'summary': 'Multi-company Stock Location Accounting', + 'version': '12.0.1.0.0', + 'author': "Hibou Corp. ", + 'category': 'Warehouse', + 'license': 'AGPL-3', + 'complexity': 'expert', + 'images': [], + 'website': "https://hibou.io", + 'description': """ +""", + 'depends': [ + 'stock_account', + ], + 'demo': [], + 'data': [ + ], + 'auto_install': False, + 'installable': True, +} diff --git a/stock_location_account_company/models/__init__.py b/stock_location_account_company/models/__init__.py new file mode 100644 index 00000000..12bab770 --- /dev/null +++ b/stock_location_account_company/models/__init__.py @@ -0,0 +1 @@ +from . import stock diff --git a/stock_location_account_company/models/stock.py b/stock_location_account_company/models/stock.py new file mode 100644 index 00000000..5ef74766 --- /dev/null +++ b/stock_location_account_company/models/stock.py @@ -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)