forked from OCA/l10n-brazil
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[12.0][l10n_br_product_contract] 12.0 pre commit l10n_br_product_cont…
…ract
- Loading branch information
Showing
9 changed files
with
74 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<!-- Copyright 2020 - TODAY, Marcel Savegnago - Escodoo - https://www.escodoo.com.br | ||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). --> | ||
|
||
<odoo> | ||
|
||
<record id="main_contract_template_sale" model="contract.template"> | ||
<field name="name">Main Company - Sale Contract Template</field> | ||
<field name="contract_type">sale</field> | ||
<field name="company_id" ref="base.main_company"/> | ||
<field name="company_id" ref="base.main_company" /> | ||
</record> | ||
|
||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,46 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<!-- Copyright 2020 - TODAY, Marcel Savegnago - Escodoo - https://www.escodoo.com.br | ||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). --> | ||
|
||
<odoo> | ||
<!-- Main Company Simples Nacional --> | ||
<!-- Sale Order with Recurrency Service --> | ||
<record id="main_so_recurrency_service" model="sale.order"> | ||
<field name="name">Main l10n_br_product_contract - Serviço Recorrente</field> | ||
<field name="partner_id" ref="l10n_br_base.res_partner_akretion"/> | ||
<field name="partner_invoice_id" ref="l10n_br_base.res_partner_akretion"/> | ||
<field name="partner_shipping_id" ref="l10n_br_base.res_partner_akretion"/> | ||
<field name="user_id" ref="base.user_admin"/> | ||
<field name="pricelist_id" ref="product.list0"/> | ||
<field name="team_id" ref="sales_team.crm_team_1"/> | ||
<field name="partner_id" ref="l10n_br_base.res_partner_akretion" /> | ||
<field name="partner_invoice_id" ref="l10n_br_base.res_partner_akretion" /> | ||
<field name="partner_shipping_id" ref="l10n_br_base.res_partner_akretion" /> | ||
<field name="user_id" ref="base.user_admin" /> | ||
<field name="pricelist_id" ref="product.list0" /> | ||
<field name="team_id" ref="sales_team.crm_team_1" /> | ||
<field name="state">draft</field> | ||
<field name="fiscal_operation_id" ref="l10n_br_fiscal.fo_venda"/> | ||
<field name="fiscal_operation_id" ref="l10n_br_fiscal.fo_venda" /> | ||
<field name="note">TESTE</field> | ||
<field name="company_id" ref="base.main_company"/> | ||
<field name="company_id" ref="base.main_company" /> | ||
</record> | ||
|
||
<record id="main_sl_recurrency_service_1_1" model="sale.order.line"> | ||
<field name="order_id" ref="main_so_recurrency_service"/> | ||
<field name="order_id" ref="main_so_recurrency_service" /> | ||
<field name="name">Serviço Recorrente</field> | ||
<field name="product_id" ref="l10n_br_product_contract.recurrency_service_product"/> | ||
<field | ||
name="product_id" | ||
ref="l10n_br_product_contract.recurrency_service_product" | ||
/> | ||
<field name="product_uom_qty">2</field> | ||
<field name="product_uom" ref="uom.product_uom_unit"/> | ||
<field name="product_uom" ref="uom.product_uom_unit" /> | ||
<field name="price_unit">500</field> | ||
<field name="fiscal_operation_type">out</field> | ||
<field name="fiscal_operation_id" ref="l10n_br_fiscal.fo_venda"/> | ||
<field name="fiscal_operation_line_id" ref="l10n_br_fiscal.fo_venda_servico"/> | ||
<field name="fiscal_operation_id" ref="l10n_br_fiscal.fo_venda" /> | ||
<field name="fiscal_operation_line_id" ref="l10n_br_fiscal.fo_venda_servico" /> | ||
<field name="recurring_invoicing_type">pre-paid</field> | ||
<field name="recurring_rule_type">monthly</field> | ||
</record> | ||
|
||
<function model="sale.order.line" name="_onchange_fiscal_operation_id"> | ||
<value eval="[ref('main_sl_recurrency_service_1_1')]"/> | ||
<value eval="[ref('main_sl_recurrency_service_1_1')]" /> | ||
</function> | ||
|
||
<function model="sale.order.line" name="_onchange_fiscal_operation_line_id"> | ||
<value eval="[ref('main_sl_recurrency_service_1_1')]"/> | ||
<value eval="[ref('main_sl_recurrency_service_1_1')]" /> | ||
</function> | ||
|
||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
* Luis Felipe Mileo <[email protected]> | ||
* Marcel Savegnago <[email protected]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters