This commit is contained in:
2026-11-08 18:46:28 +08:00
parent 3b5af1e3a6
commit 7526a5fe4d
179 changed files with 26005 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models
ACCOUNT_DOMAIN = [('account_type', 'not in', ('asset_receivable', 'liability_payable', 'asset_cash', 'liability_credit_card', 'off_balance'))]
class ResConfigSettings(models.TransientModel):
_inherit = 'res.config.settings'
def action_stock_open_valued_locations(self):
action = self.env["ir.actions.actions"]._for_xml_id('stock.action_prod_inv_location_form')
action['context'] = {
'search_default_inventory': 1,
'search_default_prod_inv_location': 1,
}
return action