Conversation
nguyenminhchien
left a comment
There was a problem hiding this comment.
- Check the analysis from Thien: https://tms.trobz.com/web#cids=1&id=66037&menu_id=424&model=tms.forge.ticket&view_type=form
- There're 3 modules: edi_purchase_diapar, edi_purchase_base edi_purchase_config. You could consider to merge/rename them to adapt with the existing modules in edi-framework.
bbb4a17 to
b48a236
Compare
|
CONFIGURATION I. FS StorageGo to Settings > Technical > FS Storage
II .EDI Backend TypeGo to EDI > Config > Backend types
III. EDI BackendGo to EDI > Config > Backends
IV. EDI Exchange Template OutputGo to EDI > Config > EDI Exchange Template Output
V. EDI Exchange TypeGo to EDI > Config > Exchange types
2. INPUT: BLE (Despatch Advice)
VI. EDI ConfigurationGo to EDI > Config > Configurations
VII. VendorOpen Vendor form > EDI > Purchase > Select EDI Configure |
b48a236 to
aa112f3
Compare
|
|
||
| @api.constrains("product_code") | ||
| def _check_product_code(self): | ||
| if self.product_code: |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
|
|
||
|
|
||
| class SupplierInfo(models.Model): | ||
| _inherit = "product.supplierinfo" |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
5337f81 to
c8f2c77
Compare
f32a10b to
31bba96
Compare
| cls.normal_supplier = cls.env.ref("base.res_partner_4") | ||
| cls.product_4 = cls.env.ref("product.product_product_4") | ||
| cls.product_5 = cls.env.ref("product.product_product_5") | ||
| cls.supplier_info_5 = cls.env["product.supplierinfo"].create( |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
| updated_values = self._get_updated_quantity_values( | ||
| line, edi_exchange_type, picking_order, supplier_info | ||
| ) | ||
| values_list += [Command.create(updated_values)] |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
| str(e), | ||
| ) | ||
|
|
||
| return self.msg_price_updated |
There was a problem hiding this comment.
It's meaningless when always return Price Updated. Supposed that all products were failed but it still returned "Price Updated"!
| edi_exchange_type, "supplier_code" | ||
| ) | ||
| product_code = line[pos_from:pos_to] | ||
| if product_code in value: |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
| picking_update = self._handle_create_picking_update(exchange_record) | ||
| if picking_update: | ||
| picking_update.button_update_picking_order() | ||
| return self.msg_despatch_processed % picking_update.name.name |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
|
|
||
| partner_is_edi = fields.Boolean( | ||
| related="partner_id.is_edi", | ||
| string="Partner (Is Edit)", |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
| "code": code, | ||
| "origin_code": origin_code, | ||
| "quantity": line.product_qty_package, | ||
| "quantity": line.product_qty, |
There was a problem hiding this comment.
There's a field product_packaging_qty for the package qty. You should add new field to res.partner or somewhere (qty_policy,..) which decide to set the quantity here = line.product_qty or line.product_packaging_qty.
There was a problem hiding this comment.
This module also depends on purchase_package_qty. A separate module is required for customization. It additionally relies on coop_purchase to update base_price instead of price field.
There was a problem hiding this comment.
- Qty:
product_packaging_qtywas added by module "purchase". - Price: You can consider to add a glue module to handle it. That new module can put in foodcoop-addons.
31bba96 to
b47b026
Compare
9a236f9 to
d2f7f3c
Compare
nguyenminhchien
left a comment
There was a problem hiding this comment.
Should not create new field to res.partner. Create new glue module in foodcoop-addons to handle the case of qty.
9b96a3a to
3ba1f2a
Compare
3ba1f2a to
23a95a2
Compare
5b0a4a4 to
8efa08f
Compare
279a1cd to
30dbff9
Compare
* Diapr Improvment: add button to pull prices from history * Improve code.
* [FIX] Log Warning * [REM] decimal precision attribute from qty_done_package field * [REM] category_print_id field from coop_default_pricetag
Currently translated at 90.0% (9 of 10 strings) Translation: foodcoops-12.0/foodcoops-12.0-edi_purchase_diapar Translate-URL: https://translate.druidoo.io/projects/foodcoops-12-0/foodcoops-12-0-edi_purchase_diapar/fr/
a58cd9b to
07d51fb
Compare
07d51fb to
619aae0
Compare



This module was initially part of the Foodcoop set of addons. We're now migrating it to 18.0 and taking this occasion to contribute it to OCA.