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

[FIX] contract: Template lines handling #92

Merged
merged 5 commits into from
Sep 25, 2017

Conversation

lasley
Copy link
Contributor

@lasley lasley commented Aug 22, 2017

@lasley lasley added this to the 10.0 milestone Aug 22, 2017
@lasley lasley force-pushed the bugfix/10.0/gh-80-template_invoice_lines branch from 6328eae to d3f3e4f Compare August 22, 2017 22:23
@@ -16,23 +16,44 @@ class AccountAnalyticInvoiceLine(models.Model):
_name = 'account.analytic.invoice.line'

product_id = fields.Many2one(
'product.product', string='Product', required=True)
'product.product',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Reviewers - sorry I killed the diff here - I was having a hard time auditing the fields for required, etc. so had to clean up the spacing

@pedrobaeza
Copy link
Member

Why the coverage drop?

@lasley
Copy link
Contributor Author

lasley commented Aug 22, 2017

I missed a spot!

* Update contract template lines handling to fix OCA#80, and fix OCA#59

@api.multi
@api.onchange('product_id')
def _onchange_product_id(self):
Copy link
Member

Choose a reason for hiding this comment

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

Why this extra method is needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The _onchange_product_id in account.analytic.invoice.line uses the partner pretty heavily, which isn't available in the contract.line. This method performs similar operation, just with the user partner instead.

I guess alternatively I could just add some try/excepts in the invoice line. I'll try that

@lasley lasley force-pushed the bugfix/10.0/gh-80-template_invoice_lines branch from ea0178c to 79ecd02 Compare August 23, 2017 17:28
@@ -5,7 +5,7 @@

{
'name': 'Contracts Management - Recurring',
'version': '10.0.1.1.0',
'version': '10.0.1.1.1',
Copy link
Member

Choose a reason for hiding this comment

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

Module version should raise at least to 10.0.1.2.0, but this can be considered a huge change and it should be 10.0.2.0.0

Copy link

@hurrinico hurrinico left a comment

Choose a reason for hiding this comment

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

Great! 👍
Tested Locally works well!

@pedrobaeza pedrobaeza merged commit c19935c into OCA:10.0 Sep 25, 2017
@lasley lasley deleted the bugfix/10.0/gh-80-template_invoice_lines branch September 25, 2017 14:26
feketemihai pushed a commit to feketemihai/contract that referenced this pull request Nov 13, 2017
Update contract template lines handling to fix OCA#80, and fix OCA#59 OCA#100
pedrobaeza pushed a commit to feketemihai/contract that referenced this pull request Nov 18, 2017
Update contract template lines handling to fix OCA#80, and fix OCA#59 OCA#100
pedrobaeza pushed a commit to feketemihai/contract that referenced this pull request Nov 19, 2017
Update contract template lines handling to fix OCA#80, and fix OCA#59 OCA#100
pedrobaeza pushed a commit to feketemihai/contract that referenced this pull request Nov 19, 2017
Update contract template lines handling to fix OCA#80, and fix OCA#59 OCA#100
sbejaoui pushed a commit to sbejaoui/contract that referenced this pull request Oct 25, 2018
Update contract template lines handling to fix OCA#80, and fix OCA#59 OCA#100
pedrobaeza pushed a commit to sbejaoui/contract that referenced this pull request Oct 27, 2018
Update contract template lines handling to fix OCA#80, and fix OCA#59 OCA#100
sbejaoui pushed a commit to sbejaoui/contract that referenced this pull request Jan 24, 2019
Update contract template lines handling to fix OCA#80, and fix OCA#59 OCA#100
devCbssolutionsRo pushed a commit to devCbssolutionsRo/contract that referenced this pull request Dec 19, 2019
Update contract template lines handling to fix OCA#80, and fix OCA#59 OCA#100
AaronHForgeFlow pushed a commit to ForgeFlow/contract that referenced this pull request Apr 24, 2020
Update contract template lines handling to fix OCA#80, and fix OCA#59 OCA#100
pedrobaeza pushed a commit to Tecnativa/contract that referenced this pull request Jul 14, 2020
Update contract template lines handling to fix OCA#80, and fix OCA#59 OCA#100
ozono pushed a commit to ozono/contract that referenced this pull request Nov 7, 2020
Update contract template lines handling to fix OCA#80, and fix OCA#59 OCA#100
ozono pushed a commit to ozono/contract that referenced this pull request Nov 14, 2020
Update contract template lines handling to fix OCA#80, and fix OCA#59 OCA#100
dnplkndll pushed a commit to Kencove/contract that referenced this pull request Dec 6, 2020
Update contract template lines handling to fix OCA#80, and fix OCA#59 OCA#100
ozono pushed a commit to ozono/contract that referenced this pull request Apr 2, 2021
Update contract template lines handling to fix OCA#80, and fix OCA#59 OCA#100
jcdrubay pushed a commit to jcdrubay/contract that referenced this pull request Oct 28, 2021
Update contract template lines handling to fix OCA#80, and fix OCA#59 OCA#100
olgamarcocb pushed a commit to tegin/contract that referenced this pull request Nov 16, 2021
Update contract template lines handling to fix OCA#80, and fix OCA#59 OCA#100
wpichler pushed a commit to wpichler/contract that referenced this pull request Oct 24, 2022
Update contract template lines handling to fix OCA#80, and fix OCA#59 OCA#100
pedrobaeza pushed a commit to wpichler/contract that referenced this pull request Mar 15, 2023
Update contract template lines handling to fix OCA#80, and fix OCA#59 OCA#100
peluko00 pushed a commit to APSL/contract that referenced this pull request Feb 15, 2024
Update contract template lines handling to fix OCA#80, and fix OCA#59 OCA#100
jaydeep32 pushed a commit to archeti-org/contract that referenced this pull request Feb 15, 2024
Update contract template lines handling to fix OCA#80, and fix OCA#59 OCA#100
CRogos pushed a commit to c4a8-odoo/module-oca-contract that referenced this pull request Mar 23, 2024
Update contract template lines handling to fix OCA#80, and fix OCA#59 OCA#100
CRogos pushed a commit to c4a8-odoo/module-oca-contract that referenced this pull request Mar 23, 2024
Update contract template lines handling to fix OCA#80, and fix OCA#59 OCA#100
CRogos pushed a commit to c4a8-odoo/module-oca-contract that referenced this pull request Mar 23, 2024
Update contract template lines handling to fix OCA#80, and fix OCA#59 OCA#100
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.

None yet

3 participants