Skip to content

Commit

Permalink
[FIX] sale_input_barcode_gs1: field expiry_date to expiration_date
Browse files Browse the repository at this point in the history
  • Loading branch information
davidpalanca committed Aug 30, 2024
1 parent 5e06d6b commit 9c577f3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 23 deletions.
25 changes: 6 additions & 19 deletions sale_input_barcode_gs1/i18n/sale_input_barcode_gs1.pot
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Project-Id-Version: Odoo Server 15.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-08-30 07:45+0000\n"
"PO-Revision-Date: 2024-08-30 07:45+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
Expand All @@ -14,27 +16,12 @@ msgstr ""
"Plural-Forms: \n"

#. module: sale_input_barcode_gs1
#: code:addons/sale_input_barcode_gs1/models/product_barcode_line_mixin.py:0
#: code:addons/sale_input_barcode_gs1/models/sale_order.py:0
#, python-format
msgid "Decoded barcode %s doesn't include a valid segment for GTIN"
msgstr ""

#. module: sale_input_barcode_gs1
#: model:ir.model.fields,field_description:sale_input_barcode_gs1.field_product_barcode_line_mixin__display_name
msgid "Display Name"
msgstr ""

#. module: sale_input_barcode_gs1
#: model:ir.model.fields,field_description:sale_input_barcode_gs1.field_product_barcode_line_mixin__id
msgid "ID"
msgstr ""

#. module: sale_input_barcode_gs1
#: model:ir.model.fields,field_description:sale_input_barcode_gs1.field_product_barcode_line_mixin____last_update
msgid "Last Modified on"
msgstr ""

#. module: sale_input_barcode_gs1
#: model:ir.model,name:sale_input_barcode_gs1.model_product_barcode_line_mixin
msgid "Utilities for any model to deal with product_id field"
#: model:ir.model,name:sale_input_barcode_gs1.model_sale_order_line
msgid "Sales Order Line"
msgstr ""
2 changes: 1 addition & 1 deletion sale_input_barcode_gs1/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
from . import product_barcode_line_mixin
from . import sale_order
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
from odoo.exceptions import UserError


class ProductLineMixin(models.AbstractModel):
_inherit = "product.barcode.line.mixin"
class SaleOrderLine(models.Model):
_inherit = "sale.order.line"

@api.model
def _decode_barcode(self, raw_barcode):
Expand Down Expand Up @@ -53,7 +53,7 @@ def _create_unknown_lot(self, barcode_dict, product):
company_id = self.env.context.get("company_id") or self.env.company.id
lot_vals = {
"name": barcode_dict["10"],
"expiry_date": barcode_dict["17"],
"expiration_date": barcode_dict["17"],
"product_id": product.id,
"company_id": company_id,
}
Expand Down

0 comments on commit 9c577f3

Please sign in to comment.