diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-06-22 13:43:42 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-06-22 13:43:42 +0700 |
| commit | 329668e82ca9e4ebd2ee93d6670380abf6ed6377 (patch) | |
| tree | 4180e03acdd15f33654a6cf3d5e8f856ac677848 /indoteknik_custom/views | |
| parent | 4e9a5a025012afe63133524eeea8987b9af9e050 (diff) | |
Add program line to order line relation, update remaining_qty response on get product promotion api, show order line on program line
Diffstat (limited to 'indoteknik_custom/views')
| -rw-r--r-- | indoteknik_custom/views/promotion_program_line.xml | 15 | ||||
| -rwxr-xr-x | indoteknik_custom/views/sale_order.xml | 1 |
2 files changed, 15 insertions, 1 deletions
diff --git a/indoteknik_custom/views/promotion_program_line.xml b/indoteknik_custom/views/promotion_program_line.xml index e15bb0d7..5963d0dd 100644 --- a/indoteknik_custom/views/promotion_program_line.xml +++ b/indoteknik_custom/views/promotion_program_line.xml @@ -58,10 +58,23 @@ <page string="Line Free Item" name="line_free_items" - attrs="{'invisible': [('promotion_type', '=', 'specific_product')]}" + attrs="{'invisible': [('promotion_type', '=', 'special_price')]}" > <field name="line_free_item" /> </page> + <page + string="Order Line" + name="order_line" + > + <field name="order_line_ids" readonly="1"> + <tree> + <field name="order_id" /> + <field name="name" /> + <field name="product_id" /> + <field name="product_uom_qty" /> + </tree> + </field> + </page> </notebook> </sheet> </form> diff --git a/indoteknik_custom/views/sale_order.xml b/indoteknik_custom/views/sale_order.xml index ea13c954..83278ca8 100755 --- a/indoteknik_custom/views/sale_order.xml +++ b/indoteknik_custom/views/sale_order.xml @@ -60,6 +60,7 @@ "/> <field name="purchase_tax_id" attrs="{'readonly': [('parent.approval_status', '!=', False)]}" domain="[('type_tax_use','=','purchase')]"/> <field name="item_percent_margin"/> + <field name="program_line_id" optional="1" /> </xpath> <xpath expr="//form/sheet/notebook/page/field[@name='order_line']/tree/field[@name='product_id']" position="before"> <field name="line_no" readonly="1"/> |
