Error details: Element '<field name="debit">' cannot be located in parent view Error context: View `res.partner.form` [view_id: 1075, xml_id: purchase_limit.view_partner_form, model: res.partner, parent_id: 123] None" while parsing /home/addons/custom/my_module/views/res_partner_view.xml:16, near <record id="view_partner_form" model="ir.ui.view"> <field name="name">res.partner.form</field> <field name="model">res.partner</field> <field name="inherit_id" ref="base.view_partner_form"/> <field name="arch" type="xml"> <xpath expr="//div[@class='oe_button_box']" position="inside"> <button name="%(my_module.action_view_records)d" type="action" class="oe_stat_button" icon="fa-files-o"> <field name="records_count" widget="statinfo" string="Records"/> </button> </xpath> </field> </record> I can't get it working , i always get this error "Debit" field does not even exist in partner form. Module is quite big. Any Ideas why this happens?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Księgowość
- Zapasy
- PoS
- Project
- MRP
To pytanie dostało ostrzeżenie
2530
Widoki
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
|
1
lis 24
|
1645 | ||
Change the Position of field in Xpath
Rozwiązane
|
|
5
lip 24
|
92919 | |
|
1
gru 23
|
3053 | ||
|
1
maj 22
|
3649 | ||
|
0
sty 20
|
2897 |
Hi,
This is not the part of the code where you are getting the error.
Check the code and find the part of code where the field named debit is used and if you can update the question with that code it will be more easy to help.
Anyway, I think the issue will be you may be, "base.view_partner_form" is the form and the field debit is added to partner form from this record "account.view_partner_property_form"