I have a new table with differents fields.
Inside the Customer View ( Sale), OpenERP users can create a new record.
However, I would like to fill automatically the two first fields:
- One is the name of the customer
- The other one is the date
Is it possible to do it? If yes, how?
Many thanks for your help,
Hello Selverineuse defaults in field declaration like
Customer_id = Customer id you want to set default
order_date = fields.Datetime('Order Date', default=fields.datetime.now())
customer_id = fields.Many2one('res.partner', 'Customer', default=_selectCustomer)
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 4/12/16, 5:03 AM|
|Seen: 255 times|
|Last updated: 4/18/16, 3:00 AM|