From 0115a875746a8cd80f9b84a5204df8a87b198994 Mon Sep 17 00:00:00 2001 From: Antonio Espinosa Date: Mon, 27 Jul 2015 12:05:27 +0200 Subject: [PATCH] [FIX] Fixes commented by @pablocm-aserti --- pos_pricelist/data/pos_order.yml | 4 ++++ pos_pricelist/models/point_of_sale.py | 2 +- pos_pricelist/views/point_of_sale_view.xml | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/pos_pricelist/data/pos_order.yml b/pos_pricelist/data/pos_order.yml index 5f510e48..35596b48 100644 --- a/pos_pricelist/data/pos_order.yml +++ b/pos_pricelist/data/pos_order.yml @@ -22,4 +22,8 @@ # ############################################################################## +- + !context + noupdate: 1 + - !function {model: pos.order, name: _install_tax_detail} diff --git a/pos_pricelist/models/point_of_sale.py b/pos_pricelist/models/point_of_sale.py index b11e9763..1b0e1d83 100644 --- a/pos_pricelist/models/point_of_sale.py +++ b/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): diff --git a/pos_pricelist/views/point_of_sale_view.xml b/pos_pricelist/views/point_of_sale_view.xml index 5a1cc1be..58c55b53 100644 --- a/pos_pricelist/views/point_of_sale_view.xml +++ b/pos_pricelist/views/point_of_sale_view.xml @@ -12,8 +12,8 @@ - - + +