Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3 Trả lời
2433 Lượt xem

hi,


I'd like that on create new invoice the create date automatically fill with the current date and no seller change it. Can someone tell me how to do that

Ảnh đại diện
Huỷ bỏ
dear Niyas,

thanks for replay my post. could you tell me where do i find the file mention on post you indicate?

is the sale_order_views.xml or pyton file?

Best regards,
Mateus DOmingos


On Sun, Jul 23, 2017 at 4:14 AM, Niyas Raphy <niyasraphyk@gmail.com> wrote:

A new answer on prevent user (seller) to change the invoice create date has been posted. Click here to access the post :

See post

--
Niyas Raphy


Sent by Odoo S.A. using Odoo.


Tác giả Câu trả lời hay nhất

Dear Niyas,

First, thanks for replay. iam new in odoo, could you please indicate me the file location?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,

You can redefine the field by giving attributes such that editable only for the managers and can assign current date automatically.

To achieve the above you can refer this answer, https://www.odoo.com/forum/help-1/question/how-to-make-a-field-readonly-based-on-particular-user-groups-in-odoo10-121213#answer-121219

Ảnh đại diện
Huỷ bỏ