driver_store_id = fields.Many2one(
'res.store',
string='Driver Store'
)
<field name="driver_store_id"
attrs="{'invisible': [('collection_required', '!=', 'yes')]}"
domain="[('is_driver_available', '=', True),
('country_id', '=', smr_store_country_id)]"/>
Normally, driver_store_id shows only stores from the user’s current company,
I want to auto-suggest (auto-fill) a driver store that may belong to:
the same company or any other company (ALL companies).
I want to avoid computed fields, stored helper fields, or heavy domain computations, as they may cause performance issues.
Hello,
Have you tried company_dependent=False ?
Please check this.
https://www.odoo.com/forum/help-1/how-to-bypass-company-dependent-field-in-m2o-selection-195465