-
-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] restructuring to link hs codes together instead of listing hs c…
…odes on products
- Loading branch information
1 parent
667c8fb
commit 7ff590f
Showing
10 changed files
with
95 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
This module only depends on the *intrastat_product* module, whiwh depends on *product_harmonized_systems* module. | ||
This module depends on the *delivery* module and the *intrastat_product* module, which depends on the *product_harmonized_systems* module. | ||
|
||
This module adds the applicable country field to HS Codes, and provides a list of HS Codes by product and/or category, in order to dynamically find the code corresponding to the destination country. | ||
This module adds the 'applicable country' field to the HS Code model, and enables HS Codes to be linked together as parent/child, so that the code corresponding to the destination country can be dynamically found from a single HS Code. |
26 changes: 26 additions & 0 deletions
26
product_harmonized_system_per_country/report/deliveryslip_report.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo> | ||
<!-- Delivery slip --> | ||
<template id="report_deliveryslip" inherit_id="stock.report_deliveryslip"> | ||
<xpath expr="//t[@t-call]" position="before"> | ||
<t | ||
t-set="o" | ||
t-value="o.with_context(hs_code_for_country=o.sudo().sale_id.partner_id.country_id.id or False)" | ||
/> | ||
</xpath> | ||
</template> | ||
<record id="report_delivery_document2" model="ir.ui.view"> | ||
<field name="name">stock.picking.report.delivery.inherit</field> | ||
<field name="inherit_id" ref="delivery.report_delivery_document2" /> | ||
<field name="priority" eval="1000" /> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//t[@t-set='has_hs_code']" position="attributes"> | ||
<attribute name="t-value"> | ||
o.move_ids.filtered(lambda l: l.product_id.hs_code) | ||
</attribute> | ||
</xpath> | ||
<!-- <xpath expr="//span[@t-field='']" position="replace">--> | ||
<!-- </xpath>--> | ||
</field> | ||
</record> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters