Commit Graph

8 Commits

Author SHA1 Message Date
Denis Roussel
f674b9ca01 [IMP] intrastat_product: Add read accesses to intrastat lines
As Sale and Purchase users have access to invoices, we need to allow them
to read intrastat move lines as present on invoices.
2023-03-06 10:11:07 +01:00
Denis Roussel
b1abf7bf42 [14.0][IMP] intrastat_product: Add read access to intrastat lines to accounting base user 2023-03-06 10:11:07 +01:00
Alexis de Lattre
aecf24f99f intrastat_base: Remove intrastat.common class 2023-03-06 10:11:07 +01:00
Luc De Meyer
3af84f829c refactor code to allow adding transaction details while encoding invoices 2023-03-06 10:11:07 +01:00
Alexis de Lattre
32b51b005c [FIX+IMP] intrastat_product: Fixes and imps:
* Improve logs and messages
* total_amount is a sum of integers, so it should be an integer
* Add transport mode in computation tree view
* FIX intrastat_country for invoices without src_dest_country_id
* FIX wrong model for seach method
* Use stock_picking_invoice_link for a better identification of the intrastat region

  With this commit, we now support the following scenario: I order to my supplier a quantity of 50 kg and he delivers/invoices 52kg ; odoo will create an additional invoice line of 2kg which is linked to the stock move, but not to any PO line.
* Modularise a piece of code
* Add ACL on hs.code to financial manager (I can't do it in product_harmonized_system because it doesn't depend on account)
* Handle scenario where an invoice has products with 0 value (samples for example) and shipping costs (accessory costs) with value > 0.
2023-03-06 10:11:07 +01:00
Luc De Meyer
a73b92b6d4 [IMP] intrastat_product: major update intrastat V3 modules
* add region to intrastat_product
2023-03-06 10:11:07 +01:00
Alexis de Lattre
a9df58f7ef [IMP] intrastat_product: Several things:
* Update README.rst and translation files
* Add index=True on some fields on which we often search, as suggested by Yannick
* Remove description in __openerp__.py
* Move ACL from l10n_fr_intrastat_product module to intrastat_product module
* Large code re-engineering following the Akretion-Noviat code sprint on intrastat
  This code has been written both by Luc de Meyer and myself.
* Add first draft of code to generate decl lines
2023-03-06 10:11:07 +01:00
Alexis de Lattre
ad75fb0cc8 [ADD] intrastat_product
Rename report.intrastat.product to l10n.fr.report.intrastat.product (same for service and for lines) + migration scripts

Rename field country_id to origin_country_id (TODO : write mig script) and move this field from l10n_fr_intrastat_product to intrastat_product

Move intrastat_code and uom_id of report.intrastat.code from l10n_fr_intrastat_product to intrastat_product, as discussed with Luc de Meyer

Use display_name instead of an inherit of name_get (better use of new API) Inherit write and create of intrastat codes to remove spaces (patch by Luc De Meyer from Noviat) Add O2M fields from intrastat code to products and product categs
2023-03-06 10:11:07 +01:00