Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
aa.gusti
/
odoo-dev
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a5c118c4
authored
Nov 17, 2021
by
aa.gusti
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
pdl-2
1 parent
276e54c9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
190 additions
and
106 deletions
views/objek_pajak.xml
views/pdl_kab_menus.xml
views/view_config.xml
views/objek_pajak.xml
View file @
a5c118c
...
@@ -57,9 +57,9 @@
...
@@ -57,9 +57,9 @@
<!-- <field name="active" invisible=""/>-->
<!-- <field name="active" invisible=""/>-->
<!-- <field name="categ_id" invisible="0"/>-->
<!-- <field name="categ_id" invisible="0"/>-->
<!-- </xpath>-->
<!-- </xpath>-->
<xpath
expr=
"//div[@name='default_code']"
position=
"attribute"
>
<!-- <xpath expr="//div[@name='default_code']" position="attribute">--
>
<field
name=
"string"
string=
"NOPD"
/
>
<!-- <field name="string" string="NOPD"/>--
>
</xpath
>
<!-- </xpath>--
>
</field>
</field>
</record>
</record>
...
...
views/pdl_kab_menus.xml
View file @
a5c118c
...
@@ -40,15 +40,13 @@
...
@@ -40,15 +40,13 @@
parent=
"pdl_kab_menu_root"
parent=
"pdl_kab_menu_root"
sequence=
"7"
/>
sequence=
"7"
/>
<menuitem
id=
"category_config_pdl_kab_menu"
<menuitem
id=
"category_config_pdl_kab_menu"
name=
"Kategori
Perusahaan
"
name=
"Kategori
Objek
"
parent=
"config_pdl_kab_menu"
parent=
"config_pdl_kab_menu"
action=
"action_category_config_pdl_kab"
action=
"action_
object_
category_config_pdl_kab"
sequence=
"2"
/>
sequence=
"2"
/>
<menuitem
id=
"
industry
_config_pdl_kab_menu"
<menuitem
id=
"
tax
_config_pdl_kab_menu"
name=
"
Jenis Perusahaan
"
name=
"
Tarif Pajak
"
parent=
"config_pdl_kab_menu"
parent=
"config_pdl_kab_menu"
action=
"action_
industry
_config_pdl_kab"
action=
"action_
tax
_config_pdl_kab"
sequence=
"2"
/>
sequence=
"2"
/>
</odoo>
</odoo>
views/view_config.xml
View file @
a5c118c
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<odoo>
<data>
<data>
<!--
Categories
-->
<!--
Tarif Pajak
-->
<record
id=
"
view_partner_category_form
"
model=
"ir.ui.view"
>
<record
id=
"
pdl_kab_account_tax_tree
"
model=
"ir.ui.view"
>
<field
name=
"name"
>
Kategori Perusahaan
</field>
<field
name=
"name"
>
pdl.kab.account.tax.tree
</field>
<field
name=
"model"
>
res.partner.category
</field>
<field
name=
"model"
>
account.tax
</field>
<field
name=
"arch"
type=
"xml"
>
<field
name=
"arch"
type=
"xml"
>
<form
string=
"Contact Tag"
>
<tree
string=
"Tarif Pajak"
decoration-muted=
"not active"
>
<sheet>
<field
name=
"sequence"
widget=
"handle"
/>
<group
col=
"4"
>
<field
name=
"description"
string=
"Uraian"
/>
<field
name=
"name"
/>
<field
name=
"amount_type"
/>
<field
name=
"active"
widget=
"boolean_toggle"
/>
<field
name=
"name"
/>
<field
name=
"parent_id"
/>
<!-- <field name="type_tax_use"/>-->
</group>
<!-- <field name="tax_scope"/>-->
</sheet>
<field
name=
"company_id"
options=
"{'no_create': True}"
groups=
"base.group_multi_company"
/>
</form>
<field
name=
"active"
widget=
"boolean_toggle"
invisible=
"0"
/>
</field>
</record>
<record
id=
"view_partner_category_list"
model=
"ir.ui.view"
>
<field
name=
"name"
>
Kategori Perusahaan
</field>
<field
name=
"model"
>
res.partner.category
</field>
<field
eval=
"6"
name=
"priority"
/>
<field
name=
"arch"
type=
"xml"
>
<tree
string=
"Contact Tags"
>
<field
name=
"display_name"
/>
</tree>
</tree>
</field>
</field>
</record>
</record>
<record
id=
"res_partner_category_search"
model=
"ir.ui.view"
>
<!-- <record id="tax_repartition_line_tree" model="ir.ui.view">-->
<field
name=
"name"
>
res.partner.category.search
</field>
<!-- <field name="name">account.tax.repartition.line.tree</field>-->
<field
name=
"model"
>
res.partner.category
</field>
<!-- <field name="model">account.tax.repartition.line</field>-->
<field
name=
"arch"
type=
"xml"
>
<!-- <field name="arch" type="xml">-->
<search
string=
"Search Partner Category"
>
<!-- <tree editable="bottom" create="1" delete="1">-->
<field
name=
"name"
/>
<!-- <field name="sequence" widget="handle"/>-->
<field
name=
"display_name"
/>
<!-- <field name="factor_percent" attrs="{'invisible': [('repartition_type', '=', 'base')]}"/>-->
<separator/>
<!-- <field name="repartition_type"/>-->
<filter
string=
"Archived"
name=
"inactive"
domain=
"[('active', '=', False)]"
/>
<!-- <field name="account_id" attrs="{'invisible': [('repartition_type', '=', 'base')]}"-->
</search>
<!-- options="{'no_create': True}"/>-->
</field>
<!-- <field name="tag_ids" widget="many2many_tags" options="{'no_create': True}"-->
</record>
<!-- domain="[('applicability', '=', 'taxes'), ('country_id', '=', tax_fiscal_country_id)]"/>-->
<!-- <field name="use_in_tax_closing"-->
<!-- optional="hidden"-->
<!-- attrs="{'invisible': [('repartition_type', '=', 'base')]}"/>-->
<!-- <field name="tax_fiscal_country_id" invisible="1"/>-->
<!-- <field name="company_id" invisible="1"/>-->
<!-- </tree>-->
<!-- </field>-->
<!-- </record>-->
<record
id=
"action_category_config_pdl_kab"
model=
"ir.actions.act_window"
>
<!-- <record id="account_tax_view_tree" model="ir.ui.view">-->
<field
name=
"name"
>
Kategori Perusahaan
</field>
<!-- <field name="name">account.invoice.line.tax.search</field>-->
<field
name=
"type"
>
ir.actions.act_window
</field>
<!-- <field name="model">account.tax</field>-->
<field
name=
"res_model"
>
res.partner.category
</field>
<!-- <field name="arch" type="xml">-->
<field
name=
"search_view_id"
ref=
"res_partner_category_search"
/>
<!-- <tree string="Account Tax">-->
<field
name=
"help"
type=
"html"
>
<!-- <field name="display_name" string="name"/>-->
<p
class=
"o_view_nocontent_smiling_face"
>
<!-- <field name="description"/>-->
Create a new contact tag
<!-- </tree>-->
</p>
<!-- </field>-->
<p>
<!-- </record>-->
Manage contact tags to better classify them for tracking and analysis purposes.
</p>
</field>
</record>
<!-- Industry -->
<!-- <record id="view_tax_kanban" model="ir.ui.view">-->
<record
id=
"res_partner_industry_form"
model=
"ir.ui.view"
>
<!-- <field name="name">account.tax.kanban</field>-->
<field
name=
"name"
>
Jenis Perusahaan
</field>
<!-- <field name="model">account.tax</field>-->
<field
name=
"model"
>
res.partner.industry
</field>
<!-- <field name="arch" type="xml">-->
<field
name=
"arch"
type=
"xml"
>
<!-- <kanban class="o_kanban_mobile">-->
<form
string=
"Industry"
>
<!-- <field name="name"/>-->
<sheet>
<!-- <field name="type_tax_use"/>-->
<group
col=
"4"
>
<!-- <field name="tax_scope"/>-->
<field
name=
"name"
/>
<!-- <templates>-->
<field
name=
"full_name"
/>
<!-- <t t-name="kanban-box">-->
<field
name=
"active"
widget=
"boolean_toggle"
/>
<!-- <div t-attf-class="oe_kanban_card oe_kanban_global_click">-->
</group>
<!-- <div class="row mb4">-->
</sheet>
<!-- <div class="col-6">-->
</form>
<!-- <strong><span><t t-esc="record.name.value"/></span></strong>-->
</field>
<!-- </div>-->
</record>
<!-- <div class="col-6 text-right">-->
<!-- <span class="badge badge-pill"><t t-esc="record.type_tax_use.value"/></span>-->
<!-- <span class="badge badge-pill"><t t-esc="record.tax_scope.value"/></span>-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<!-- </t>-->
<!-- </templates>-->
<!-- </kanban>-->
<!-- </field>-->
<!-- </record>-->
<record
id=
"res_partner_industry_list"
model=
"ir.ui.view"
>
<!-- <record id="view_account_tax_search" model="ir.ui.view">-->
<field
name=
"name"
>
Jenis Perusahaan
</field>
<!-- <field name="name">account.tax.search</field>-->
<field
name=
"model"
>
res.partner.industry
</field>
<!-- <field name="model">account.tax</field>-->
<field
eval=
"6"
name=
"priority"
/>
<!-- <field name="arch" type="xml">-->
<field
name=
"arch"
type=
"xml"
>
<!-- <search string="Search Taxes">-->
<tree
string=
"Industry"
editable=
"bottom"
>
<!-- <field name="name" filter_domain="['|', ('name','ilike',self), ('description','ilike',self)]" string="Tax"/>-->
<field
name=
"name"
/>
<!-- <field name="company_id" groups="base.group_multi_company"/>-->
<field
name=
"full_name"
/>
<!-- <filter string="Sale" name="sale" domain="[('type_tax_use','=','sale')]" />-->
<field
name=
"active"
invisible=
"1"
/>
<!-- <filter string="Purchase" name="purchase" domain="[('type_tax_use','=','purchase')]" />-->
</tree>
<!-- <separator/>-->
</field>
<!-- <filter string="Services" name="service" domain="[('tax_scope','=','service')]" />-->
</record>
<!-- <filter string="Goods" name="goods" domain="[('tax_scope','=','consu')]" />-->
<!-- <separator/>-->
<!-- <filter name="active" string="Active" domain="[('active','=',True)]" help="Show active taxes"/>-->
<!-- <filter name="inactive" string="Inactive" domain="[('active','=',False)]" help="Show inactive taxes"/>-->
<!-- <group string="Group By">-->
<!-- <filter string="Company" name="company" domain="[]" context="{'group_by':'company_id'}" groups="base.group_multi_company"/>-->
<!-- <filter string="Tax Type" name="taxapp" domain="[]" context="{'group_by':'type_tax_use'}"/>-->
<!-- <filter string="Tax Scope" name="taxapp" domain="[]" context="{'group_by':'tax_scope'}"/>-->
<!-- </group>-->
<!-- </search>-->
<!-- </field>-->
<!-- </record>-->
<record
id=
"res_partner_industry_search"
model=
"ir.ui.view"
>
<!-- <record id="account_tax_view_search" model="ir.ui.view">-->
<field
name=
"name"
>
res.partner.industry.view.search
</field>
<!-- <field name="name">account.tax.search.filters</field>-->
<field
name=
"model"
>
res.partner.industry
</field>
<!-- <field name="model">account.tax</field>-->
<field
name=
"arch"
type=
"xml"
>
<!-- <field name="arch" type="xml">-->
<search
string=
"Search Partner Industry"
>
<!-- <search string="Search Taxes">-->
<field
name=
"name"
/>
<!-- <field name="name" filter_domain="['|', ('name','ilike',self), ('description','ilike',self)]" string="Tax"/>-->
<field
name=
"full_name"
/>
<!-- <field name="company_id" groups="base.group_multi_company"/>-->
<separator/>
<!-- </search>-->
<filter
string=
"Archived"
name=
"inactive"
<!-- </field>-->
domain=
"[('active', '=', False)]"
/>
<!-- </record>-->
</search>
</field>
<!-- <record id="view_tax_form" model="ir.ui.view">-->
<!-- <field name="name">account.tax.form</field>-->
<!-- <field name="model">account.tax</field>-->
<!-- <field name="arch" type="xml">-->
<!-- <form string="Account Tax">-->
<!-- <sheet>-->
<!-- <group>-->
<!-- <group>-->
<!-- <field name="name"/>-->
<!-- <field name="amount_type"/>-->
<!-- <field name="active" widget="boolean_toggle"/>-->
<!-- </group>-->
<!-- <group>-->
<!-- <field name="type_tax_use"/>-->
<!-- <field name="tax_scope"/>-->
<!-- <label for="amount" attrs="{'invisible':[('amount_type','not in', ('fixed', 'percent', 'division'))]}"/>-->
<!-- <div attrs="{'invisible':[('amount_type','not in', ('fixed', 'percent', 'division'))]}">-->
<!-- <field name="amount" class="oe_inline"/>-->
<!-- <span class="o_form_label oe_inline" attrs="{'invisible':[('amount_type','=','fixed')]}">%</span>-->
<!-- </div>-->
<!-- </group>-->
<!-- </group>-->
<!-- <notebook>-->
<!-- <page string="Definition" name="definition">-->
<!-- <div attrs="{'invisible': [('amount_type', '=', 'group')]}">-->
<!-- <field name="tax_fiscal_country_id" invisible="1"/>-->
<!-- <field name="country_code" invisible="1"/>-->
<!-- <group string="Distribution for Invoices">-->
<!-- <field name="invoice_repartition_line_ids" nolabel="1" context="{'default_company_id': company_id}"/>-->
<!-- </group>-->
<!-- <group string="Distribution for Credit Notes">-->
<!-- <field name="refund_repartition_line_ids" nolabel="1" context="{'default_company_id': company_id}"/>-->
<!-- </group>-->
<!-- </div>-->
<!-- <field name="children_tax_ids" attrs="{'invisible':['|', ('amount_type','!=','group'), ('type_tax_use','=','none')]}" domain="[('type_tax_use','in',('none',type_tax_use)), ('amount_type','!=','group')]">-->
<!-- <tree string="Children Taxes">-->
<!-- <field name="sequence" widget="handle"/>-->
<!-- <field name="name"/>-->
<!-- <field name="amount_type"/>-->
<!-- <field name="amount"/>-->
<!-- </tree>-->
<!-- </field>-->
<!-- </page>-->
<!-- <page string="Advanced Options" name="advanced_options">-->
<!-- <group>-->
<!-- <group>-->
<!-- <field name="description" attrs="{'invisible':[('amount_type','=', 'group')]}"/>-->
<!-- <field name="tax_group_id"/>-->
<!-- <field name="analytic" attrs="{'invisible':[('amount_type','=', 'group')]}" groups="analytic.group_analytic_accounting" />-->
<!-- <field name="company_id" options="{'no_create': True}" groups="base.group_multi_company"/>-->
<!-- </group>-->
<!-- <group name="advanced_booleans">-->
<!-- <field name="price_include" attrs="{'invisible':[('amount_type','=', 'group')]}" />-->
<!-- <field name="include_base_amount" attrs="{'invisible':[('amount_type','=', 'group')]}" />-->
<!-- <field name="hide_tax_exigibility" invisible="1"/>-->
<!-- <field name="tax_exigibility" widget="radio" attrs="{'invisible':['|', ('amount_type','=', 'group'), ('hide_tax_exigibility', '=', False)]}" groups="account.group_account_readonly"/>-->
<!-- <field name="cash_basis_transition_account_id" options="{'no_create': True}" attrs="{'invisible': [('tax_exigibility', '=', 'on_invoice')], 'required': [('tax_exigibility', '=', 'on_payment')]}" groups="account.group_account_readonly"/>-->
<!-- </group>-->
<!-- </group>-->
<!-- </page>-->
<!-- </notebook>-->
<!-- </sheet>-->
<!-- </form>-->
<!-- </field>-->
<!-- </record>-->
<record
id=
"action_tax_config_pdl_kab"
model=
"ir.actions.act_window"
>
<field
name=
"name"
>
Tarif Pajak
</field>
<field
name=
"type"
>
ir.actions.act_window
</field>
<field
name=
"res_model"
>
account.tax
</field>
<field
name=
"view_mode"
>
tree,form
</field>
<field
name=
"view_id"
ref=
"pdl_kab_account_tax_tree"
/>
</record>
</record>
<!--Kategori Objek-->
<!--Industry Action-->
<record
id=
"action_object_category_config_pdl_kab"
model=
"ir.actions.act_window"
>
<record
id=
"action_industry_config_pdl_kab"
model=
"ir.actions.act_window"
>
<field
name=
"name"
>
action.object.category.config.pdl.kab
</field>
<field
name=
"name"
>
Jenis Perusahaan
</field>
<field
name=
"type"
>
ir.actions.act_window
</field>
<field
name=
"type"
>
ir.actions.act_window
</field>
<field
name=
"res_model"
>
res.partner.industry
</field>
<field
name=
"res_model"
>
product.category
</field>
<field
name=
"view_mode"
>
kanban,tree,form
</field>
<field
name=
"view_mode"
>
tree,form
</field>
<field
name=
"search_view_id"
ref=
"res_partner_industry_search"
/>
<!-- <field name="view_id" ref="res_partner_industry_tree"/>-->
</record>
</record>
</data>
</data>
</odoo>
</odoo>
\ No newline at end of file
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment