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

I've been trying to find a way to create two different quotation/order forms, is this possible? I need one for a Sales Order and a separate one for an Event Order.

e.g. Sales Order form will have the following fields in the Order Lines tab:

Product/Description/Florist Notes/Card Option/Card Message/Qty/Unit Price/Subtotal

Events will only have:

Product/Description/Qty/Unit Price/Subtotal



形象
丢弃
最佳答案

Hi,

Yes it is possible to define multiple views for the same  model in Odoo. If you need to display the two views in separate menus, you can specify the view id inside the menu action. Either you can create two views, or define all the fields inside the same form and hide the fields based on condition.

Thanks

形象
丢弃
编写者

Thanks, I'm trying to do this via the Studio app but there seems to be limitations, I am unable to hide the fields in the order lines based on fields in the sales order form.

Can you walk me through creating a new view?

编写者

Thank you so much for the tutorial, it has provided much clarity for me to move forward.