Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
727 Widoki

i have created module for odoo 17.4 saas enterprise 
but is giving me error 
is working in the community version and in the enterprise deb version 


pos.order.search.custom pos.order





from odoo import models, fields, api

class CustomPosOrder(models.Model): _inherit = 'pos.order' # Inherit from pos.order

customer_phone = fields.Char( string='Customer Phone', compute='_compute_customer_phone', store=True )

@api.depends('partner_id') def _compute_customer_phone(self): for order in self: if order.partner_id: order.customer_phone = order.partner_id.phone or order.partner_id.mobile or "" else: order.customer_phone = ""

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
lip 25
2373
4
sie 25
3774
0
mar 25
1615
2
sty 25
2978
0
sty 25
1773