Browse Source

[FIX] No need to translate selection fields

pull/465/head
Iván Todorovich 5 years ago
parent
commit
36afd743ab
  1. 4
      pos_price_to_weight/models/barcode_rule.py

4
pos_price_to_weight/models/barcode_rule.py

@ -2,12 +2,12 @@
# @author: Sylvain LE GAL (https://twitter.com/legalsylvain) # @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import _, fields, models
from odoo import models, fields
class BarcodeRule(models.Model): class BarcodeRule(models.Model):
_inherit = 'barcode.rule' _inherit = 'barcode.rule'
type = fields.Selection(selection_add=[ type = fields.Selection(selection_add=[
('price_to_weight', _('Priced Product (Computed Weight)'))
('price_to_weight', 'Priced Product (Computed Weight)')
]) ])
Loading…
Cancel
Save