[IMP] sale : add no_create option on tax
A sale order is not the best way to create new taxes on the fly. We therefore add the no_create option on taxes to avoid quick creating them on a sale order like what is already done with invoices. Closes #15640
This commit is contained in:
committed by
Thibault Delavallée
parent
cd6ff51bfa
commit
94fb317da6
@@ -241,7 +241,7 @@
|
||||
</group>
|
||||
<group>
|
||||
<field name="tax_id" widget="many2many_tags" domain="[('type_tax_use','=','sale'),('company_id','=',parent.company_id)]"
|
||||
attrs="{'readonly': [('qty_invoiced', '>', 0)]}"/>
|
||||
attrs="{'readonly': [('qty_invoiced', '>', 0)]}" options="{'no_create': True}"/>
|
||||
<label for="customer_lead"/>
|
||||
<div>
|
||||
<field name="customer_lead" class="oe_inline"/> days
|
||||
@@ -285,7 +285,7 @@
|
||||
<field name="price_unit"
|
||||
attrs="{'readonly': [('qty_invoiced', '>', 0)]}"/>
|
||||
<field name="tax_id" widget="many2many_tags" domain="[('type_tax_use','=','sale'),('company_id','=',parent.company_id)]"
|
||||
attrs="{'readonly': [('qty_invoiced', '>', 0)]}"/>
|
||||
attrs="{'readonly': [('qty_invoiced', '>', 0)]}" options="{'no_create': True}"/>
|
||||
<field name="discount" groups="sale.group_discount_per_so_line"/>
|
||||
<field name="price_subtotal" widget="monetary" groups="sale.group_show_price_subtotal"/>
|
||||
<field name="price_total" widget="monetary" groups="sale.group_show_price_total"/>
|
||||
|
||||
Reference in New Issue
Block a user