Browse Source

[FIX] Fixes commented by @pablocm-aserti

pull/39/head
Antonio Espinosa 10 years ago
parent
commit
0115a87574
  1. 4
      pos_pricelist/data/pos_order.yml
  2. 2
      pos_pricelist/models/point_of_sale.py
  3. 4
      pos_pricelist/views/point_of_sale_view.xml

4
pos_pricelist/data/pos_order.yml

@ -22,4 +22,8 @@
#
##############################################################################
-
!context
noupdate: 1
- !function {model: pos.order, name: _install_tax_detail}

2
pos_pricelist/models/point_of_sale.py

@ -75,7 +75,7 @@ class PosOrder(models.Model):
_inherit = "pos.order"
taxes = fields.One2many(comodel_name='pos.order.tax',
inverse_name='pos_order')
inverse_name='pos_order', readonly=True)
@api.model
def _amount_line_tax(self, line):

4
pos_pricelist/views/point_of_sale_view.xml

@ -12,8 +12,8 @@
</xpath>
<page string="Payments" position="after">
<page string="Taxes">
<field name="taxes" widget="one2many_list">
<tree string="Taxes detail">
<field name="taxes">
<tree editable="bottom" string="Taxes detail">
<field name="name"/>
<field name="base"/>
<field name="amount"/>

Loading…
Cancel
Save