add fields in view sale line tree

copy resource to invoice
This commit is contained in:
Wilson Gomez 2023-03-17 08:36:21 -05:00
parent 183190d8e1
commit c2ed6f03f1
3 changed files with 8 additions and 2 deletions

View File

@ -324,6 +324,7 @@ class Sale(metaclass=PoolMeta):
invoice.turn = self._get_turn()
invoice.save()
Invoice.update_taxes([invoice])
self.copy_resources_to(invoice)
return invoice
def _get_authorization(self, sale):

View File

@ -1,5 +1,5 @@
[tryton]
version=6.0.9
version=6.0.10
depends:
account
account_statement

View File

@ -5,13 +5,18 @@ The COPYRIGHT file at the top level of this repository contains the full copyrig
<field name="product" view_ids="sale.product_view_list_sale_line"/>
<field name="quantity"/>
<field name="unit"/>
<field name="base_price"/>
<field name="unit_price"/>
<field name="discount_rate" factor="100">
<suffix name="discount_rate" string="%"/>
</field>
<field name="discount_amount"/>
<field name="unit_price_w_tax"/>
<field name="amount" tree_invisible="1"/>
<field name="amount_w_tax"/>
<field name="description" tree_invisible="1"/>
<field name="unit_digits" tree_invisible="1"/>
<field name="taxes" tree_invisible="1"/>
<field name="taxes" />
<field name="company" tree_invisible="1"/>
<field name="sale" tree_invisible="1"/>
</tree>