Merge lp:~lin-yu/purchase-wkfl/add_purchase_control_suuplier into lp:~purchase-core-editors/purchase-wkfl/7.0
Proposed by
LIN Yu
Status: | Work in progress |
---|---|
Proposed branch: | lp:~lin-yu/purchase-wkfl/add_purchase_control_suuplier |
Merge into: | lp:~purchase-core-editors/purchase-wkfl/7.0 |
Diff against target: |
224 lines (+195/-0) 5 files modified
purchase_control_supplier/__init__.py (+25/-0) purchase_control_supplier/__openerp__.py (+46/-0) purchase_control_supplier/i18n/zh_CN.po (+37/-0) purchase_control_supplier/purchase.py (+53/-0) purchase_control_supplier/purchase_view.xml (+34/-0) |
To merge this branch: | bzr merge lp:~lin-yu/purchase-wkfl/add_purchase_control_suuplier |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Pedro Manuel Baeza | Needs Resubmitting | ||
Joël Grand-Guillaume @ camptocamp | code review, no tests | Needs Fixing | |
Review via email:
|
Description of the change
[ADD] module purchase_
* Enables/Disables the supplier control in Purchase.
To post a comment you must log in.
Hi Lin,
Thanks for the proposal ! A few remarks here:
* Line 163,170, 179 : please split the lines, too long. You can achieve that using intermediate variable name
e.g.
product_limit = self.pool. get('res. partner' ).read( cr,uid, context[ 'supplier_ id'],[' supplier_ product_ limit'] )['supplier_ product_ limit']
Can be:
part_obj = self.pool. get('res. partner' ) 'supplier_ id'] read(cr, uid,supplier_ id,['supplier_ product_ limit'] )
supplier_id = context[
product_limit = part_obj.
* Line 166: Any reason not to use the ORM here ? I think you should.
* Line 179: The help tool tip is confusing for me. Took me a while to get the purpose of the field.. I suggest something more like :
Check that box if you want to only search in products catalog of this supplier when fulfilling a purchase order for him. Otherwise, all products catalog will be available as normal.
" Line 66: The description of the module should be a bit more precise I think. Refer to the point above to better explaine what "Enables/Disables the supplier control in Purchase" means.
Have a nice day,
Joël