Browse Source

Mar 20 : [UPDT] Bug Fixed 'sale_discount_total'

pull/249/merge
AjmalCybro 2 years ago
parent
commit
9a0112cbb1
  1. 2
      sale_discount_total/__manifest__.py
  2. 15
      sale_discount_total/views/sale_view.xml

2
sale_discount_total/__manifest__.py

@ -22,7 +22,7 @@
{
'name': 'Sale Discount on Total Amount',
'version': '16.0.1.0.0',
'version': '16.0.1.1.0',
'category': 'Sales Management',
'live_test_url': 'https://www.youtube.com/watch?v=CigmHe9iC4s&feature=youtu.be',
'summary': "Discount on Total in Sale and Invoice With Discount Limit and Approval",

15
sale_discount_total/views/sale_view.xml

@ -42,15 +42,16 @@
class="oe_subtotal_footer_separator"
widget='monetary'
options="{'currency_field': 'currency_id'}"/>
<!-- <field name="tax_totals_json"-->
<!-- widget="account-tax-totals-field" nolabel="1"-->
<!-- colspan="2" invisible="1"/>-->
</group>
<group colspan="4">
<field name="note" nolabel="1"
placeholder="Terms and conditions..."/>
<field colspan="2" name="note" nolabel="1" placeholder="Terms and conditions..."/>
</group>
<group class="oe_subtotal_footer oe_right" colspan="2" name="sale_total">
<field name="tax_totals" widget="account-tax-totals-field" nolabel="1" colspan="2" readonly="1"/>
</group>
<div class="oe_clear"/>
<div class="clearfix"/>
</group>
</xpath>
@ -68,7 +69,7 @@
<field name="inherit_id" ref="sale.view_order_form"/>
<field name="arch" type="xml">
<xpath expr="//page/field[@name='order_line']/tree/field[@name='price_subtotal']" position="after">
<field name="total_discount" force_save="1"/>
<field name="total_discount" force_save="1" invisible="1"/>
</xpath>
</field>
</record>

Loading…
Cancel
Save