Skip to content

[18.0][MIG] sale_blanket_order: Migration to 18.0#3370

Closed
BertVGroenendael wants to merge 57 commits intoOCA:18.0from
DynAppsNV:18.0-mig-sale_blanket_order
Closed

[18.0][MIG] sale_blanket_order: Migration to 18.0#3370
BertVGroenendael wants to merge 57 commits intoOCA:18.0from
DynAppsNV:18.0-mig-sale_blanket_order

Conversation

@BertVGroenendael
Copy link
Copy Markdown
Contributor

No description provided.

andreparames and others added 30 commits October 21, 2024 15:42
When duplicating a confirmed blanket order, the new copy shouldn't
keep the state nor the sequence number (name).
Steps to reproduce:

* create and confirm a blanket order (BO) with (product A, qty 30) and (product B, qty 20)
* from the BO create a SO with (product A, qty 10) and (product B, qty 10)
* from the BO create a SO with (product A, qty 20) and (product B, qty 0)
* from the BO create another SO with (product B, qty 10)

Current behavior:

It raises the exception "The sale has already been completed.".

Expected behavior:

No exception is raised.
Currently translated at 7.1% (11 of 154 strings)

Translation: sale-workflow-12.0/sale-workflow-12.0-sale_blanket_order
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-12-0/sale-workflow-12-0-sale_blanket_order/de/
* Allow to select an analitic account in the blanket order. It
  will be passed on to the SO.
* Allow to select analytic tags on blanket order lines. They will
  be passed to the SO lines.
* Source document was not being filled in SO created from a
  blanket order.
@BertVGroenendael BertVGroenendael force-pushed the 18.0-mig-sale_blanket_order branch from aa0a420 to 1151435 Compare October 22, 2024 08:39
@rousseldenis
Copy link
Copy Markdown
Contributor

/ocabot migration sale_blanket_order

required=True,
)
currency_id = fields.Many2one("res.currency", related="pricelist_id.currency_id")
analytic_account_id = fields.Many2one(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any replacement for that ?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Blanket order lines inherit from analytic.mixin, but the values are not transferred without #3294

Copy link
Copy Markdown
Member

@StefanRijnhart StefanRijnhart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check #3294 and #3288

@wolfhall
Copy link
Copy Markdown

wolfhall commented Mar 4, 2025

@BertVGroenendael - Is this work still in progress? I am not the most technical person but would love to see this available in V18....

product_currency = None
if rule_id:
pricelist_item = PricelistItem.browse(rule_id)
if pricelist_item.pricelist_id.discount_policy == "without_discount":
Copy link
Copy Markdown
Contributor

@AaronHForgeFlow AaronHForgeFlow Mar 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if pricelist_item.pricelist_id.discount_policy == "without_discount":
if pricelist_item._show_discount():

discount_policy field does not exist anymore

@LauraCForgeFlow
Copy link
Copy Markdown
Contributor

Could you please include the fix #3628 in this PR? Thanks! :)

Comment on lines +511 to +512
and pricelist_item.base_pricelist_id.discount_policy
== "without_discount"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
and pricelist_item.base_pricelist_id.discount_policy
== "without_discount"
and pricelist_item._show_discount()

@AaronHForgeFlow
Copy link
Copy Markdown
Contributor

This PR seems stale so we are superseding it soon

@rousseldenis
Copy link
Copy Markdown
Contributor

@BertVGroenendael We switch to #3642

@rvalyi
Copy link
Copy Markdown
Member

rvalyi commented Dec 21, 2025

I think this should be closed in favor of OCA/sale-blanket#8 that was merged into the sale-blanket repo. Please reopen if I'm wrong.

@rvalyi rvalyi closed this Dec 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.