diff --git a/__init__.py b/__init__.py index b614dcd..e282cbe 100644 --- a/__init__.py +++ b/__init__.py @@ -45,6 +45,7 @@ def register(): weighing.Weighing, weighing.WeighingPlantation, weighing.WeighingDo, + weighing.WeighingInvoice, weighing.WeighingParcel, quality.Configuration, quality.ConfigurationCompany, diff --git a/contract.py b/contract.py index 7e160f7..8b16d2f 100644 --- a/contract.py +++ b/contract.py @@ -41,7 +41,7 @@ class AgronomicsContract(Workflow, ModelSQL, ModelView): start_date = fields.Function( fields.Date('Start Date'), 'on_change_with_start_date') end_date = fields.Function( - fields.Date('End Date'), 'on_change_with_start_date') + fields.Date('End Date'), 'on_change_with_end_date') producer = fields.Many2One( 'party.party', "Producer", states=_STATES, depends=_DEPENDS, required=True) diff --git a/message.xml b/message.xml index 966f662..69771d1 100644 --- a/message.xml +++ b/message.xml @@ -42,5 +42,8 @@ this repository contains the full copyright notices and license terms. --> The contract "%(contract)s" cant be activated because the parcel "%(parcel)s" is in another active contract. + + The weighing center "%(center)s" dont have a to location configured. + diff --git a/tryton.cfg b/tryton.cfg index 4319058..9b34b27 100644 --- a/tryton.cfg +++ b/tryton.cfg @@ -11,6 +11,7 @@ depends: quality_control production stock + account_invoice_line_standalone xml: plot.xml party.xml diff --git a/view/weighing_center_form.xml b/view/weighing_center_form.xml index 2b3d3e8..d1f81c6 100644 --- a/view/weighing_center_form.xml +++ b/view/weighing_center_form.xml @@ -3,4 +3,8 @@