Restrict sales discount field.

Asked by Triniidaddy

Hello,

I noticed that in the pricelist versions there is a min margin for markup. I just realized that this does not prevent my sales people from selling below that min using the discount field in the sales module.

I know that I can simply disable the field altogether but I want to allow my sales people to have some discretion with discount but not to be able to price goods below a certain threshold.

Thanks

Question information

Language:
English Edit question
Status:
Answered
For:
OpenERP Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Vinay Rana (OpenERP) (vra-openerp) said :
#1

Hello Triniidaddy ,

In current scenario this type of threshold on particular field in not available.You can post a bug with whishlist state in addons.
You can done this task by doing some changes in workflow.you can check the similar example in hr_payroll module workflow:
hr_payroll module is exist in trunk-extra-addons(link : https://code.launchpad.net/~openerp-commiter/openobject-addons/trunk-extra-addons).
        <record id="t2" model="workflow.transition">
            <field name="act_from" ref="act_draft"/>
            <field name="act_to" ref="act_hr_check"/>
            <field name="condition">basic&gt;=10000</field>
            <field name="signal">verify_sheet</field>
        </record>
It will transition from draft to hr_check state only when basic is greater then 10000 otherwise not.

Hope this will help you.

Thanks.

Can you help with this problem?

Provide an answer of your own, or ask Triniidaddy for more information if necessary.

To post a message you must log in.