|
5 | 5 | License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). --> |
6 | 6 | <odoo> |
7 | 7 | <record id="view_sales_order_line_input_tree" model="ir.ui.view"> |
8 | | - <field name="name">sale.order.line.input.tree.</field> |
| 8 | + <field name="name">sale.order.line.input.list.view</field> |
9 | 9 | <field name="model">sale.order.line</field> |
10 | 10 | <field name="priority">20</field> |
11 | 11 | <field name="arch" type="xml"> |
12 | | - <tree |
| 12 | + <list |
13 | 13 | decoration-info="invoice_status == 'to invoice'" |
14 | 14 | decoration-warning="state == 'draft'" |
15 | 15 | decoration-muted="state == 'cancel'" |
|
161 | 161 | <field |
162 | 162 | name="product_packaging_id" |
163 | 163 | invisible="not product_id" |
164 | | - context="{'default_product_id': product_id, 'tree_view_ref':'product.product_packaging_tree_view', 'form_view_ref':'product.product_packaging_form_view'}" |
| 164 | + context="{'default_product_id': product_id, 'list_view_ref':'product.product_packaging_tree_view', 'form_view_ref':'product.product_packaging_form_view'}" |
165 | 165 | groups="product.group_stock_packaging" |
166 | 166 | optional="show" |
167 | 167 | /> |
|
178 | 178 | <field |
179 | 179 | name="discount" |
180 | 180 | string="Disc.%" |
181 | | - groups="product.group_discount_per_so_line" |
| 181 | + groups="sale.group_discount_per_so_line" |
182 | 182 | optional="show" |
183 | 183 | /> |
184 | 184 | <field name="is_downpayment" column_invisible="1" /> |
|
200 | 200 | <field name="price_tax" column_invisible="1" /> |
201 | 201 | <field name="company_id" column_invisible="1" /> |
202 | 202 | <field name="pricelist_id" column_invisible="1" /> |
203 | | - </tree> |
| 203 | + </list> |
204 | 204 | </field> |
205 | 205 | </record> |
206 | 206 | <record id="view_sales_order_line_filter" model="ir.ui.view"> |
|
251 | 251 | <field name="name">Sales Orders Lines</field> |
252 | 252 | <field name="type">ir.actions.act_window</field> |
253 | 253 | <field name="res_model">sale.order.line</field> |
254 | | - <field name="view_mode">tree,form,pivot,graph</field> |
| 254 | + <field name="view_mode">list,form,pivot,graph</field> |
255 | 255 | <field name="view_id" ref="view_sales_order_line_input_tree" /> |
256 | 256 | </record> |
257 | 257 | <menuitem |
|
0 commit comments