Fix
This commit is contained in:
parent
cef87b5dd6
commit
97eed7147a
|
@ -230,9 +230,11 @@ class Booking(Workflow, ModelSQL, ModelView):
|
|||
|
||||
def get_stock_moves(self, name=None):
|
||||
moves = []
|
||||
for folio in self.lines:
|
||||
for charge in folio.charges:
|
||||
moves.append(charge.move)
|
||||
# for folio in self.lines:
|
||||
# for charge in folio.charges:
|
||||
# if charge.move:
|
||||
# moves.append(charge.move.id)
|
||||
# return moves
|
||||
return moves
|
||||
|
||||
@classmethod
|
||||
|
|
5
folio.py
5
folio.py
|
@ -983,15 +983,12 @@ class FolioCharge(Workflow, ModelSQL, ModelView):
|
|||
pass
|
||||
|
||||
@fields.depends('unit_price', 'folio', 'product', 'description',
|
||||
'invoice_to', '_parent_folio.main_guest')
|
||||
'_parent_folio.main_guest')
|
||||
def on_change_product(self):
|
||||
if self.product:
|
||||
self.unit_price = self.product.template.list_price
|
||||
self.description = self.product.template.name
|
||||
|
||||
# if self.folio:
|
||||
# self.invoice_to = self.folio.main_guest.id
|
||||
|
||||
|
||||
class OpenMigrationStart(ModelView):
|
||||
'Open Migration Start'
|
||||
|
|
|
@ -38,7 +38,7 @@ this repository contains the full copyright notices and license terms. -->
|
|||
<field name="guests" colspan="4"/>
|
||||
</page>
|
||||
<page string="Stock" id="stock">
|
||||
<field name="stock_moves" colspan="4"/>
|
||||
<!-- <field name="stock_moves" colspan="4"/> -->
|
||||
</page>
|
||||
<page string="Additional Info" id="folio_additional_info">
|
||||
<label name="commission_amount"/>
|
||||
|
|
|
@ -37,7 +37,7 @@ this repository contains the full copyright notices and license terms. -->
|
|||
<label name="storage"/>
|
||||
<field name="storage"/>
|
||||
<newline />
|
||||
<field name="stock_moves" colspan="4"/>
|
||||
<!-- <field name="stock_moves" colspan="4"/> -->
|
||||
</page>
|
||||
<page string="Additional Info" id="folio_additional_info">
|
||||
<label name="commission_amount"/>
|
||||
|
|
|
@ -16,8 +16,8 @@ this repository contains the full copyright notices and license terms. -->
|
|||
<field name="unit_price"/>
|
||||
<label name="unit_price_w_tax"/>
|
||||
<field name="unit_price_w_tax"/>
|
||||
<label name="invoice_to"/>
|
||||
<field name="invoice_to"/>
|
||||
<!-- <label name="invoice_to"/>
|
||||
<field name="invoice_to"/> -->
|
||||
<label name="amount"/>
|
||||
<field name="amount"/>
|
||||
<label name="invoice_line"/>
|
||||
|
|
|
@ -10,7 +10,7 @@ this repository contains the full copyright notices and license terms. -->
|
|||
<field name="unit_price_w_tax"/>
|
||||
<field name="amount" expand="1"/>
|
||||
<field name="order"/>
|
||||
<field name="invoice_to"/>
|
||||
<!-- <field name="invoice_to"/> -->
|
||||
<field name="state" expand="1"/>
|
||||
<field name="invoice_line"/>
|
||||
</tree>
|
||||
|
|
Loading…
Reference in New Issue