You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
2.3 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- ********************************************************************** -->
  3. <!--Point Of Sale - Order Pricelist Change for Odoo -->
  4. <!--Copyright (C) 2014 GRAP (http://www.grap.coop) -->
  5. <!--@author Sylvain LE GAL (https://twitter.com/legalsylvain) -->
  6. <!--This program is free software: you can redistribute it and/or modify -->
  7. <!--it under the terms of the GNU Affero General Public License as -->
  8. <!--published by the Free Software Foundation, either version 3 of the -->
  9. <!--License, or (at your option) any later version. -->
  10. <!--This program is distributed in the hope that it will be useful, -->
  11. <!--but WITHOUT ANY WARRANTY; without even the implied warranty of -->
  12. <!--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -->
  13. <!--GNU Affero General Public License for more details. -->
  14. <!--You should have received a copy of the GNU Affero General Public License-->
  15. <!--along with this program. If not, see <http://www.gnu.org/licenses/>. -->
  16. <!-- ********************************************************************** -->
  17. <openerp>
  18. <data noupdate="1">
  19. <!-- Price List -->
  20. <record id="pricelist_surcharge" model="product.pricelist">
  21. <field name="name">Surcharge Pricelist</field>
  22. <field name="type">sale</field>
  23. </record>
  24. <record id="pricelist_version_surcharge" model="product.pricelist.version">
  25. <field name="pricelist_id" ref="pricelist_surcharge"/>
  26. <field name="name">Surcharge Pricelist Version</field>
  27. </record>
  28. <record id="pricelist_item_surcharge" model="product.pricelist.item">
  29. <field name="price_version_id" ref="pricelist_version_surcharge"/>
  30. <field name="base" ref="product.list_price"/>
  31. <field name="price_surcharge">10</field>
  32. <field name="name">Surcharge Pricelist Line</field>
  33. </record>
  34. <!-- Partner -->
  35. <record id="partner_surcharge" model="res.partner">
  36. <field name="name">Surcharge Customer</field>
  37. <field name="customer" eval="True" />
  38. <field name="property_product_pricelist" eval="ref('pricelist_surcharge')" />
  39. </record>
  40. </data>
  41. </openerp>