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

hello, 
I added a custom field (x_date_tarif) on the form of articles. How to take the field when I make a sales document. I wish, when I select an item this field appears to know if the price has been updated. 
Thank you in advance.

Imagine profil
Abandonează
Cel mai bun răspuns

you need "onchange" method on price, but it will be little tricky to find out if price is default or not.

 

Consultant Odoo

Imagine profil
Abandonează

Thank you, but I think that the first question to solve is : "How to take the field when I make a sales document", and your answer is useful but it would come afterwards ;-)

Cel mai bun răspuns

Hi,

Do you already have it displayed in your form ? See the following if your answer is "no"

If you use the default OpenERP website, you can add this field in the form views. To do so, you have to find which view is used, and then you will be able to add your field to the XML file which describes the view.

Try to switch on developer's mode (in the top-right corner, click on "about OpenERP" and select the mode). Then, you will see a list box, with "Debug View" selected, so choose "Edit View". Edit your view by adding the field x_date_tarif.

If your issue is to take an information from a module (form) to another, create a relation with a new field with a "many2one" type, related to your field x_date_tarif, and then display it like it is explained higher.

 

Imagine profil
Abandonează