Merge lp://staging/~camptocamp/sale-wkfl/7.0-add-sale-default-discount-lep into lp://staging/~sale-core-editors/sale-wkfl/7.0
Proposed by
Leonardo Pistone
Status: | Needs review |
---|---|
Proposed branch: | lp://staging/~camptocamp/sale-wkfl/7.0-add-sale-default-discount-lep |
Merge into: | lp://staging/~sale-core-editors/sale-wkfl/7.0 |
Diff against target: |
335 lines (+287/-0) 9 files modified
sale_default_discount/__init__.py (+22/-0) sale_default_discount/__openerp__.py (+56/-0) sale_default_discount/model/__init__.py (+23/-0) sale_default_discount/model/partner.py (+34/-0) sale_default_discount/model/sale.py (+47/-0) sale_default_discount/test/no_default_discount.yml (+21/-0) sale_default_discount/test/partner_default_discount.yml (+30/-0) sale_default_discount/view/partner.xml (+20/-0) sale_default_discount/view/sale.xml (+34/-0) |
To merge this branch: | bzr merge lp://staging/~camptocamp/sale-wkfl/7.0-add-sale-default-discount-lep |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Pedro Manuel Baeza | Needs Resubmitting | ||
Review via email: mp+227214@code.staging.launchpad.net |
To post a comment you must log in.
Unmerged revisions
- 51. By Leonardo Pistone
-
add tests to sale_default_
discount As discussed in the yaml file itself, I hit a situation where manual testing
works, but a default value does not show in the order line when in a yaml
test.I prefer not to write extra production code just to make already working code
pass yaml tests. If YAML code are meant to be full-stack integrated tests (I
got the impression they are, since for example they run onchange methods),
then this looks like a bug in the yaml processor. - 50. By Leonardo Pistone
-
rename field to sale_default_
discount As suggested by Pedro
- 49. By Leonardo Pistone
-
[add] new module sale_default_
discount
Hi, Leonardo,
Thanks for the MP.
I'm seeing the code, and I feel more comfortable having the field called as default_ sale_discount, or at least sale_discount, not only discount, because partners can be also suppliers.
About the functionality itself, I'm not seeing in the code the part that applies this default value to sale order lines. Where it is?
Regards.