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.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project
- MRP
This question has been flagged
you need "onchange" method on price, but it will be little tricky to find out if price is default or not.
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.
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up