-
-
Notifications
You must be signed in to change notification settings - Fork 530
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
[ADD][14.0] new addon contract_sequence #820
Conversation
d1b6f2e
to
ff14faa
Compare
Tested on runboat, I can not create a customer contract. |
a4f0634
to
6b79a97
Compare
thank you for your feedback @angelmoya i fixed some default values and now should be fine |
@sbidoul could you take a look to the runboat please? |
likely due to this: OCA/oca-ci#29 |
20ae5e5
to
3dbbe5f
Compare
@angelmoya did you have the opportunty to test? now the runboat is running :) |
Nice, is working right... but codecov is to low.. if you can add tests would be great |
aa7b4cb
to
c391626
Compare
why travis and runboat are crashing on account_banking_mandate ? |
That was an expired certificate on odoo-community.org again. It's resolved now please retry. |
c391626
to
c0a7db4
Compare
thank you @sbidoul |
fcb4d76
to
2b87b9c
Compare
36a6456
to
dd5a3de
Compare
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. |
no one interested in this module? |
/ocabot rebase |
imp pre-commit fix typos
fix typos fix typos
Congratulations, PR rebased to 14.0. |
dd5a3de
to
0264cdf
Compare
"contract_sequence.seq_contract_auto" | ||
) | ||
if not result: | ||
raise UserWarning(_("No default sequence found!")) |
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.
Please raise Odoo exception (UserError)
raise UserWarning(_("No default sequence found!")) | ||
return result | ||
|
||
sequence_id = fields.Many2one( |
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.
Please put fields definition on top
help="This field contains the information related to the numbering " | ||
"of the journal entries of this journal.", | ||
copy=False, | ||
default=get_default_sequence, |
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.
Please use lambda
|
||
|
||
class ContractTemplate(models.Model): | ||
_inherit = "contract.template" |
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.
Is the sequencing wanted on templates ?
|
||
|
||
@tagged("post_install", "-at_install") | ||
class TestContractSequence(TransactionCase): |
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.
Please use SavepointCase
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. |
Co-authored-by: Denis Roussel (ACSONE) <[email protected]>
This addon adds sequence to contract and contract template
it sets also a default sequence for contract in company settings