-
-
Notifications
You must be signed in to change notification settings - Fork 545
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
[IMP][10.0] contract: Add templating #42
Conversation
Hi @lasley , contracts had templates in v8, have you recover that functionality? |
It seems I did, yeah. Had no idea it was a pre-existing feature 😆 |
I ask, because we have customers in v8 using them and we will need it fits for the migration. cc @pedrobaeza |
An overview of my changes:
Works quite nicely and didn't take much code, I was pretty happy. Hopefully it fits migration 😉 - I can backport to 9 fairly easy. |
@@ -0,0 +1,189 @@ | |||
# -*- coding: utf-8 -*- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
File name typo
4bdb1ce
to
5b3735f
Compare
5b3735f
to
9e4a383
Compare
* Add template functionality for contracts
a269200
to
42e2907
Compare
42e2907
to
3d294ce
Compare
Alright this is ready for review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple changes requested :)
('company_id', '=', company_id)] | ||
return self.env['account.journal'].search(domain, limit=1) | ||
|
||
@api.onchange('partner_id') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
partner_id
is not defined as a field of this model.
@@ -3,151 +3,47 @@ | |||
# © 2014 Angel Moya <[email protected]> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file is misspelled. s/account_anayltic_account.py/account_analytic_account.py
Does anyone have any thoughts on moving contracts into a subheader of its own? Right now it's under Invoicing => Sales => Contracts, but I'd like to maybe add an Invoicing => Contracts with the following:
|
I prefer to not create another "Invoices" entry. Better to have a filter like "From contracts) in the existing one. You need to have Contracts on Sales, because salesmen are the one who manage them. About templates, I think it's better to have it under Sales > Configuration > Contracts > Templates. |
@@ -10,6 +10,7 @@ | |||
'license': 'AGPL-3', | |||
'author': "OpenERP SA," |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this OpenERP SA
be Odoo SA
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if they have switched already their legal part. They don't put author now in Odoo 10 manifests, so no clue...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmmm best to play it on the safe and leave it as is then. Thanks @pedrobaeza
@tedsalmon - thanks for the review @pedrobaeza - I somewhat followed your suggestion on the menu placement. I'm torn on whether it should be above or below "Settings". I settled on below, but am definitely open to other placements. |
6b3d02f
to
b08e4bb
Compare
Add template functionality for contracts
Add template functionality for contracts
Add template functionality for contracts
Add template functionality for contracts
Add template functionality for contracts
Add template functionality for contracts
Add template functionality for contracts
Add template functionality for contracts
Add template functionality for contracts
Add template functionality for contracts
Add template functionality for contracts
Add template functionality for contracts
Add template functionality for contracts
Add template functionality for contracts
Add template functionality for contracts
Add template functionality for contracts
Add template functionality for contracts
Add template functionality for contracts
Add template functionality for contracts
Add template functionality for contracts
Add template functionality for contracts
Add template functionality for contracts
Add template functionality for contracts
Add template functionality for contracts
Add template functionality for contracts
Add template functionality for contracts
Add template functionality for contracts
Add template functionality for contracts
Add template functionality for contracts
Add template functionality for contracts
This PR adds template functionality to
contract
.Depends: