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

10.0 Port account_fiscal_position_vat_check #408

Merged
merged 3 commits into from
Oct 11, 2016

Conversation

alexis-via
Copy link
Contributor

No description provided.

Copy link
Contributor

@lmignon lmignon left a comment

Choose a reason for hiding this comment

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

A little change to start with a proper version number 😏


{
'name': 'Account Fiscal Position VAT Check',
'version': '8.0.0.1.1',
'version': '10.0.0.1.1',
Copy link
Contributor

Choose a reason for hiding this comment

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

10.0.1.0.0

@pedrobaeza pedrobaeza mentioned this pull request Oct 11, 2016
39 tasks

@api.multi
def action_move_create(self):
'''Check that the customer has VAT set
Copy link
Member

Choose a reason for hiding this comment

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

Docstrings uses triple double-quote


@api.onchange('property_account_position_id')
def fiscal_position_change(self):
'''Warning if the fiscal position requires a VAT number and the
Copy link
Member

Choose a reason for hiding this comment

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

Double quote

'''Warning if the fiscal position requires a VAT number and the
partner doesn't have one yet'''
fp = self.property_account_position_id
if fp and self.customer and not self.vat:
Copy link
Member

Choose a reason for hiding this comment

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

You can save one if putting directly if fp.vat_required in the first condition

- better version number to start
- triple quotes on docstrings
- remove one if
"that require the customer to have a VAT number, "
"but the VAT number is missing.") % fp.name
}
if fp and fp.vat_required and self.customer and not self.vat:
Copy link
Member

Choose a reason for hiding this comment

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

You don't need to check fp, as fp.vat_required will be False if fp is an empty recordset, but not blocking.

Copy link
Contributor

@lmignon lmignon left a comment

Choose a reason for hiding this comment

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

Code review only

@pedrobaeza pedrobaeza merged commit 0817db5 into OCA:10.0 Oct 11, 2016
carlos-domatix pushed a commit to Domatix/account-financial-tools that referenced this pull request Nov 14, 2017
[MIG] account_fiscal_position_vat_check: to v10
rven pushed a commit to rven/account-financial-tools that referenced this pull request Mar 1, 2018
[MIG] account_fiscal_position_vat_check: to v10
rven pushed a commit to rven/account-financial-tools that referenced this pull request Aug 17, 2018
[MIG] account_fiscal_position_vat_check: to v10
rven pushed a commit to rven/account-financial-tools that referenced this pull request Aug 17, 2018
[MIG] account_fiscal_position_vat_check: to v10
rven pushed a commit to rven/account-financial-tools that referenced this pull request Aug 17, 2018
[MIG] account_fiscal_position_vat_check: to v10
alexis-via pushed a commit to akretion/account-financial-tools that referenced this pull request Jan 31, 2019
[MIG] account_fiscal_position_vat_check: to v10
Tardo pushed a commit to Tecnativa/account-financial-tools that referenced this pull request Jun 13, 2019
[MIG] account_fiscal_position_vat_check: to v10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants