Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
724 Vizualizări

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 = ""

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
iul. 25
2373
4
aug. 25
3767
0
mar. 25
1613
2
ian. 25
2976
0
ian. 25
1771