This commit is contained in:
Oscar Alvarez 2020-12-03 11:39:03 -05:00
parent d4db10123a
commit 41bc8b0105
2 changed files with 4 additions and 5 deletions

View File

@ -647,11 +647,10 @@ class Operation(Workflow, ModelSQL, ModelView):
if rec.get('vouchers'):
for v in rec['vouchers']:
SaleVoucher.create([{
'voucher': v.id,
'sale': sale.id
'voucher': v.id,
'sale': sale.id
}])
# Add and create default charges lines if exists
if rec.get('guests_qty') and rec.get('add_default_charges'):
for product in configuration.default_charges:

View File

@ -27,7 +27,7 @@ this repository contains the full copyright notices and license terms. -->
<label name="taxes_exception"/>
<field name="taxes_exception"/>
<notebook>
<page string="Lines" id="lines">
<!-- <page string="Lines" id="lines">
<field name="lines" colspan="4"/>
</page>
<page string="Guests" id="guests">
@ -58,7 +58,7 @@ this repository contains the full copyright notices and license terms. -->
<label name="operation_target"/>
<field name="operation_target"/>
<field name="transfered_operations" colspan="4"/>
</page>
</page> -->
</notebook>
<group col="10" colspan="4" id="buttons">
<label name="state"/>