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

[11.0][MIG] contract_sale_generation #329

Closed
wants to merge 18 commits into from

Conversation

sylvainvh
Copy link

Migration of module contract_sale_generation

I added the field contract_id on sale.order to replace the previous field journal_id

@sylvainvh sylvainvh changed the title 11.0 mig contract sale generation [11.0][MIG] contract_sale_generation May 15, 2019
Copy link
Member

@tbaden tbaden left a comment

Choose a reason for hiding this comment

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

thanks for the work 👍
I did a code review: LGTM,
but please use the new fragment readme
plus some optional changes if you like.

<?xml version="1.0" encoding='UTF-8'?>
<odoo>

<record model="ir.cron" id="account_analytic_cron_for_sale">
Copy link
Member

Choose a reason for hiding this comment

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

optional change:
id before model

</field>
</record>

<record id="act_recurring_sales" model="ir.actions.act_window">
Copy link
Member

Choose a reason for hiding this comment

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

optional change:
action id pattern

For an action: the main action respects <model_name>_action. Others are suffixed with _, where detail is an underscore lowercase string explaining the action (should not be long). This is used only if multiple actions are declared for the model.

<?xml version="1.0" encoding="utf-8"?>
<odoo>

<record id="account_analytic_account_recurring_sale_form" model="ir.ui.view">
Copy link
Member

Choose a reason for hiding this comment

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

optional change:
use original id (account_analytic_account_recurring_form_form)

Copy link
Member

@luismontalba luismontalba left a comment

Choose a reason for hiding this comment

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

Tested on runbot

@sylvainvh
Copy link
Author

Hi @tbaden , @pedrobaeza and @luismontalba . I made required changes on my PR.

* Sale Autoconfirm, validate Sales Orders if type is "Sales"

.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
Copy link
Member

Choose a reason for hiding this comment

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

Runbot Button gets generated. Please remove this part from usage

Copy link
Member

@tbaden tbaden left a comment

Choose a reason for hiding this comment

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

LGTM, please squash your commits into one. Thanks 👍

Copy link
Member

@tbaden tbaden left a comment

Choose a reason for hiding this comment

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

Sorry, noticed you removed it from readme instead of usage. Readme gets generated by oca bot. You have to change the usage.rst

@sylvainvh sylvainvh force-pushed the 11.0-mig-contract_sale_generation branch from b38e03f to 4377a1d Compare May 20, 2019 15:31
@max3903 max3903 added this to the 11.0 milestone May 22, 2019
@sylvainvh sylvainvh force-pushed the 11.0-mig-contract_sale_generation branch from 4377a1d to 6d0007a Compare May 27, 2019 09:37
@rafaelbn
Copy link
Member

rafaelbn commented May 27, 2019

Hello, this PR is duplicated there is a migration before in #320 made by @Bilbonet

@rafaelbn
Copy link
Member

As I said this PR is duplicated. We should review previous one #320

@pedrobaeza
Copy link
Member

/ocabot merge

This was referenced Dec 17, 2019
@OCA-git-bot
Copy link
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 11.0-ocabot-merge-pr-329-by-pedrobaeza-bump-no, awaiting test results.

OCA-git-bot added a commit that referenced this pull request Dec 17, 2019
Signed-off-by pedrobaeza
@OCA-git-bot
Copy link
Contributor

@pedrobaeza your merge command was aborted due to failed check(s), which you can inspect on this commit of 11.0-ocabot-merge-pr-329-by-pedrobaeza-bump-no.

After fixing the problem, you can re-issue a merge command. Please refrain from merging manually as it will most probably make the target branch red.

@pedrobaeza
Copy link
Member

/ocabot merge

@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 11.0-ocabot-merge-pr-329-by-pedrobaeza-bump-no, awaiting test results.

OCA-git-bot added a commit that referenced this pull request Dec 17, 2019
Signed-off-by pedrobaeza
sale_line_vals.update({
'name': name,
'discount': line.discount,
'price_unit': line.price_unit,
Copy link
Member

Choose a reason for hiding this comment

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

In this part we're missing UOM . Is it possible to add this part https://github.com/OCA/contract/pull/284/files

@OCA-git-bot
Copy link
Contributor

@pedrobaeza your merge command was aborted due to failed check(s), which you can inspect on this commit of 11.0-ocabot-merge-pr-329-by-pedrobaeza-bump-no.

After fixing the problem, you can re-issue a merge command. Please refrain from merging manually as it will most probably make the target branch red.

@pedrobaeza
Copy link
Member

@sylvainvh can you attend @flotho's comment?

@flotho
Copy link
Member

flotho commented Dec 30, 2019

Hi @sylvainvh , any chance to have a review ?

Regards

@flotho
Copy link
Member

flotho commented Dec 30, 2019

Hi, @pedrobaeza ,

I propose a merge and I will propose a PR.

@flotho
Copy link
Member

flotho commented Mar 11, 2020

Hi @sylvainvh

Any chance to have a review on my PR on your repo ?
@pedrobaeza , do you recommend me to propose the same PR from sylvainvh#1 ?

@pedrobaeza
Copy link
Member

If @sylvainvh doesn't answer in a while, you can supersede this PR with a new one starting from this and adding your extra commit.

angelmoya and others added 18 commits April 20, 2020 22:27
…ata (OCA#130)

* [FIX+IMP] contract: Improve usability and don't fail on wrong data

* Cron create invoices masked for avoiding silent errors
* New constraints for assuring data consistency
* UI helps for entering consistent data
* Spanish translation
* Remove double company_id field on form

* [FIX] contract_sale_generation: Adapt tests to upstream contract
* Change the method called in the view
* Complete the create_invoice method
* Bump version + authoring
* Correct bad call of method
  Small Documentation
* Add super call in python test
* FIX bad field names causing bad quantities in sale.order.line
Updated by Update PO files to match POT (msgmerge) hook in Weblate.
Currently translated at 100.0% (10 of 10 strings)

Translation: contract-10.0/contract-10.0-contract_sale_generation
Translate-URL: https://translation.odoo-community.org/projects/contract-10-0/contract-10-0-contract_sale_generation/gl/
Currently translated at 100.0% (10 of 10 strings)

Translation: contract-10.0/contract-10.0-contract_sale_generation
Translate-URL: https://translation.odoo-community.org/projects/contract-10-0/contract-10-0-contract_sale_generation/de/
Currently translated at 100.0% (10 of 10 strings)

Translation: contract-10.0/contract-10.0-contract_sale_generation
Translate-URL: https://translation.odoo-community.org/projects/contract-10-0/contract-10-0-contract_sale_generation/fi/
@sylvainvh sylvainvh force-pushed the 11.0-mig-contract_sale_generation branch from 6d0007a to 250d26f Compare April 20, 2020 20:27
@github-actions
Copy link

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Nov 14, 2021
@github-actions github-actions bot closed this Dec 19, 2021
BT-etejeda pushed a commit to BT-etejeda/contract that referenced this pull request May 17, 2024
Syncing from upstream OCA/contract (15.0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate stale PR/Issue without recent activity, it'll be soon closed automatically.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet