Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

incoterm_id defined in purchase AND purchase_stock #65347

Open
alexis-via opened this issue Feb 1, 2021 · 4 comments
Open

incoterm_id defined in purchase AND purchase_stock #65347

alexis-via opened this issue Feb 1, 2021 · 4 comments
Labels
13.0 14.0 Logistics about stock, mrp, delivery, purchase

Comments

@alexis-via
Copy link
Contributor

On odoo v13, v14 and master, the field incoterm_id on purchase.order is defined both in the module purchase (https://github.com/odoo/odoo/blob/staging.master/addons/purchase/models/purchase.py#L123) and purchase_stock (https://github.com/odoo/odoo/blob/staging.master/addons/purchase_stock/models/purchase.py#L19)

It works, but this is kind of "dirty". It should be fixed in master.

@pedrobaeza
Copy link
Collaborator

What about doing a PR for master removing one of them?

@Feyensv Feyensv added the Logistics about stock, mrp, delivery, purchase label Feb 2, 2021
@alexis-via
Copy link
Contributor Author

Yes, we just need to decide in which module the field should be defined. On the sale side, that field is defined in sale_stock, so I suggest to define the field in purchase_stock.

@pedrobaeza
Copy link
Collaborator

Yeah, I agree. It's something linked to stock.

@Yenthe666
Copy link
Collaborator

Yep, sounds like the best idea :) Feel free to make a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
13.0 14.0 Logistics about stock, mrp, delivery, purchase
Projects
None yet
Development

No branches or pull requests

4 participants