コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
2032 ビュー

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.