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

7.0 set date_validity to proper value on copy() #248

Merged
merged 3 commits into from Apr 28, 2016

Conversation

alexis-via
Copy link
Contributor

No description provided.

Convert class names to camelcase
'''
By default, date_order is set to today on copy()
cf addons/sale/sale.py. So we set date_validity to
it's default value on copy()
Copy link
Member

Choose a reason for hiding this comment

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

it's -> its or this but not it's

@@ -59,6 +59,19 @@ def _default_date_validity(self, cr, uid, context=None):
'date_validity': _default_date_validity,
}

def copy(self, cr, uid, id, default=None, context=None):
'''
Copy link
Member

Choose a reason for hiding this comment

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

Use double-quotes for docstring

@pedrobaeza
Copy link
Member

Minor remark, but 👍

@alexis-via
Copy link
Contributor Author

Could someone with the super-powers merge this please ?

@atchuthan
Copy link
Member

@alexis-via, we need 2 or more Up vote to merge. You could ask for label change to "needs review"(as OCA members follow through needs review label to check the PR status/review)

code reviewed: 👍

@tremlin
Copy link

tremlin commented Apr 28, 2016

Code review 👍

@guewen guewen merged commit d835f59 into OCA:7.0 Apr 28, 2016
BT-dherreros pushed a commit to BT-dherreros/sale-workflow that referenced this pull request Apr 29, 2019
Syncing from upstream OCA/sale-workflow (12.0)
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.

None yet

6 participants