Skip to content

Commit

Permalink
temp
Browse files Browse the repository at this point in the history
  • Loading branch information
vava-odoo committed Sep 26, 2024
1 parent 6dea058 commit 98f81dd
Show file tree
Hide file tree
Showing 97 changed files with 274 additions and 1,637 deletions.
11 changes: 3 additions & 8 deletions beverage_distributor/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,20 @@
'category': 'Supply Chain',
'description': "",
'depends': [
'account',
'account_followup',
'analytic',
'base_automation',
'calendar',
'delivery',
'hr_skills',
'knowledge',
'mrp',
'point_of_sale',
'product_barcodelookup',
'purchase',
'sale_crm',
'sale_management',
'sale_purchase',
'sale_service',
'sale_stock',
'sales_team',
'stock_account',
'mrp',
'web_studio',
'website_crm',
'website_sale',
Expand All @@ -39,6 +34,7 @@
'data/product_public_category.xml',
'data/pos_category.xml',
'data/pos_config.xml',
'data/account_tax.xml',
'data/product_category.xml',
'data/product_template.xml',
'data/product_attribute.xml',
Expand All @@ -59,14 +55,13 @@
'demo': [
'demo/website.xml',
'demo/res_partner.xml',
'demo/hr_employee.xml',
'demo/crm_lead.xml',
'demo/product_supplierinfo.xml',
'demo/sale_order.xml',
'demo/sale_order_line.xml',
'demo/sale_order_confirm.xml',
'demo/stock_warehouse_orderpoint.xml',
'demo/mrp_production.xml',
'demo/stock_quant.xml',
'demo/website_view.xml',
'demo/website_theme_apply.xml',
'demo/website_page.xml',
Expand Down
77 changes: 77 additions & 0 deletions beverage_distributor/data/account_tax.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
<?xml version='1.0' encoding='UTF-8'?>
<odoo noupdate="1">
<record id='deposit_tax_group' model='account.tax.group'>
<field name='name'>Deposit</field>
<field name='country_id' ref="base.be"/>
</record>

<record id="account_tax_01_sale" model="account.tax">
<field name="amount">0.1</field>
<field name="amount_type">fixed</field>
<field name="name">DEP 0.1</field>
<field name="tax_type">sale</field>
<field name="tax_group_id" ref="deposit_tax_group"/>
</record>
<record id="account_tax_21_sale" model="account.tax">
<field name="amount">2.1</field>
<field name="amount_type">percent</field>
<field name="name">DEP 2.1</field>
<field name="tax_type">sale</field>
<field name="tax_group_id" ref="deposit_tax_group"/>
</record>
<record id="account_tax_24_sale" model="account.tax">
<field name="amount">2.4</field>
<field name="amount_type">fixed</field>
<field name="name">DEP 2.4</field>
<field name="tax_type">sale</field>
<field name="tax_group_id" ref="deposit_tax_group"/>
</record>
<record id="account_tax_45_sale" model="account.tax">
<field name="amount">4.5</field>
<field name="amount_type">fixed</field>
<field name="name">DEP 4.5</field>
<field name="tax_type">sale</field>
<field name="tax_group_id" ref="deposit_tax_group"/>
</record>
<record id="account_tax_01_purchase" model="account.tax">
<field name="amount">0.1</field>
<field name="amount_type">fixed</field>
<field name="name">DEP 0.1</field>
<field name="tax_type">purchase</field>
<field name="tax_group_id" ref="deposit_tax_group"/>
</record>
<record id="account_tax_24_purchase" model="account.tax">
<field name="amount">2.4</field>
<field name="amount_type">fixed</field>
<field name="name">DEP 2.4</field>
<field name="tax_type">purchase</field>
<field name="tax_group_id" ref="deposit_tax_group"/>
</record>
<record id="account_tax_45_purchase" model="account.tax">
<field name="amount">4.5</field>
<field name="amount_type">fixed</field>
<field name="name">DEP 4.5</field>
<field name="tax_type">purchase</field>
<field name="tax_group_id" ref="deposit_tax_group"/>
</record>

<record id='excises_tax_group' model='account.tax.group'>
<field name='name'>Excises</field>
<field name='country_id' ref="base.be"/>
</record>

<record id="account_tax_exc_coca_sale" model="account.tax">
<field name="amount">1.21</field>
<field name="amount_type">fixed</field>
<field name="name">EXC COCA</field>
<field name="tax_type">sale</field>
<field name="tax_group_id" ref="excises_tax_group"/>
</record>
<record id="account_tax_exc_21676_sale" model="account.tax">
<field name="amount">2.1676</field>
<field name="amount_type">fixed</field>
<field name="name">EXC 2.1676</field>
<field name="tax_type">sale</field>
<field name="tax_group_id" ref="excises_tax_group"/>
</record>
</odoo>
1 change: 1 addition & 0 deletions beverage_distributor/data/ir_actions_server.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version='1.0' encoding='UTF-8'?>
<odoo>
todo
<record id="execute_code_9f1bcf56-a7d4-4f1b-b82b-97bcacece564" model="ir.actions.server">
<field name="code"><![CDATA[if record.x_quantity_by_deposit_product == 1 and record.x_unit_sale_product.id:
raise UserError("Unit sale product should be undefined if this product can not be sold in a smaller unit.")
Expand Down
Loading

0 comments on commit 98f81dd

Please sign in to comment.