تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
2495 أدوات العرض

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.

الصورة الرمزية
إهمال
أفضل إجابة

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

 

Consultant Odoo

الصورة الرمزية
إهمال

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 ;-)

أفضل إجابة

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.

 

الصورة الرمزية
إهمال