This question has been flagged
2 Replies
4156 Views

Hi :

I work on

Odoo 14.0 (Community Edition) with the devel mode

i am looking for to add the customer_rank and supplier_rank to partner form.

When I add

<field name="customer_rank" />
 <field name="supplier_rank" />

to my  partner form it do not work

Retraçage : Error: child.attrs is undefined

If I add them to list view it works

Any help welcome

I do not understand the pb. Any help welcome


Avatar
Discard
Best Answer

Have you seen https://odootricks.tips/about/building-blocks/server-actions/use-server-actions-contact-customer-supplier/


You may want to know that we purposely hid these fields to make them work "automagically".

  • if you create a Vendor from the Vendor Menu, it becomes a Vendor automatically

  • if you create a Contact and order from it, it becomes a Vendor automatically

  • if you order from a Customer, it becomes a Vendor automatically

  • If you order from a Vendor every week, it will show at the top of the list.

  • if you order from a Vendor once a year, it will show at the bottom of the list.

  • we decreased the chances users would create duplicates after "not being able to find" records

I recommend you explore how it works for newly created records - using the Server Action for imported records - we have seen onboarding time and support ticket volume decrease since making these changes.  Things are 'less confusing' for Users (even though they may not be so for you!)


Avatar
Discard

See https://github.com/odoo/odoo/commit/8626257bc7b9ee772006eb17d12f56344e594f25 if you want more information about the rationale behind this improvement

Author Best Answer

Hi ray:

thanks for your answer.

I understand the rank.It is tfor a customer who want to see it in the form view

I saw the server action. I can create in odoo devel mode.

How can i create then in a module?

After changing my form view it work. So I may have a xml pb.

Is there an odoo tool to validate the xml ?

Avatar
Discard