Files
enterprise-addons/whatsapp_stock/models/res_config_settings.py
T

13 lines
394 B
Python

from odoo import fields, models
class ResConfigSettings(models.TransientModel):
_inherit = 'res.config.settings'
stock_confirmation_wa_template_id = fields.Many2one(
comodel_name='whatsapp.template',
related='company_id.stock_confirmation_wa_template_id',
domain="[('model', '=', 'stock.picking'), ('status', '=', 'approved')]",
readonly=False,
)