跳至内容
菜单
此问题已终结
2 回复
4984 查看

To not lose my statistics and my different documents, I try to redo quotes, purchase orders, invoices and others in the software Odoo 12. I can not change the dates of creation. If I create a document as an order or invoice then it will be 2014, and Lara will appear on today's date. Is it possible to modify the Creation

形象
丢弃
最佳答案

Hi Hugo,

If you are creating documents by using UI or ORM functions then the create date will be automatically updated as the current date. So try to update with the psql query. The column name is create_date 

形象
丢弃
编写者 最佳答案

in the part of the order form, I only have the validity date field, once validated, the document is at the date of today. how to do?

形象
丢弃

As I explained above Odoo ORM methods in default set their ORM fields create_date, write_date, craete_uid in default. In order to change the default settings you have to override the original _create functions form odoo.model

编写者

Odoo Server Error - Warning

×

The properties of the fields of the database can not be modified in this way! Please, modify them via Python code, preferably via a custom module!

相关帖文 回复 查看 活动
3
3月 25
6718
2
12月 15
5023
3
10月 18
5494
3
2月 25
3053
1
11月 24
2861