-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by marylla
- Loading branch information
Showing
17 changed files
with
543 additions
and
547 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
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
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,11 +1,9 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo> | ||
<data> | ||
<record id="product_uom_month" model="uom.uom"> | ||
<field name="name">Month(s)</field> | ||
<field name="uom_type">bigger</field> | ||
<field ref="uom.uom_categ_wtime" name="category_id" /> | ||
<field name="factor" eval="0.033" /> | ||
</record> | ||
</data> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,30 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo> | ||
<data> | ||
<record id="product_template_form_view" model="ir.ui.view"> | ||
<field name="model">product.template</field> | ||
<field name="inherit_id" ref="product.product_template_form_view" /> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//div[@name='options']" position="inside"> | ||
<div> | ||
<field name="rental" /> | ||
<label for="rental" /> | ||
</div> | ||
</xpath> | ||
</field> | ||
</record> | ||
<record id="product_template_form_view" model="ir.ui.view"> | ||
<field name="model">product.template</field> | ||
<field name="inherit_id" ref="product.product_template_form_view" /> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//div[@name='options']" position="inside"> | ||
<div> | ||
<field name="rental" /> | ||
<label for="rental" /> | ||
</div> | ||
</xpath> | ||
</field> | ||
</record> | ||
|
||
<record id="rental_product_search_view" model="ir.ui.view"> | ||
<field name="model">product.product</field> | ||
<field name="mode">primary</field> | ||
<field name="inherit_id" ref="product.product_search_form_view" /> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//filter[@name='filter_to_purchase']" position="after"> | ||
<filter | ||
name="rental" | ||
string="Can be Rented" | ||
domain="[('rental','=',True), ('type','=','product')]" | ||
/> | ||
</xpath> | ||
</field> | ||
</record> | ||
</data> | ||
<record id="rental_product_search_view" model="ir.ui.view"> | ||
<field name="model">product.product</field> | ||
<field name="mode">primary</field> | ||
<field name="inherit_id" ref="product.product_search_form_view" /> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//filter[@name='filter_to_purchase']" position="after"> | ||
<filter | ||
name="rental" | ||
string="Can be Rented" | ||
domain="[('rental','=',True), ('type','=','product')]" | ||
/> | ||
</xpath> | ||
</field> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,56 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo> | ||
<data> | ||
|
||
<record id="res_config_settings_view_form" model="ir.ui.view"> | ||
<field name="model">res.config.settings</field> | ||
<field name="priority" eval="10" /> | ||
<field name="inherit_id" ref="base.res_config_settings_view_form" /> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//div[hasclass('settings')]" position="inside"> | ||
<div | ||
class="app_settings_block" | ||
data-string="Rental" | ||
string="Rental" | ||
data-key="rental_base" | ||
> | ||
<h2>Product</h2> | ||
<div class="row mt16 o_settings_container"> | ||
<div class="col-12 col-lg-6 o_setting_box"> | ||
<div class="o_setting_left_pane"> | ||
<field name="group_product_variant" /> | ||
<record id="res_config_settings_view_form" model="ir.ui.view"> | ||
<field name="model">res.config.settings</field> | ||
<field name="priority" eval="10" /> | ||
<field name="inherit_id" ref="base.res_config_settings_view_form" /> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//div[hasclass('settings')]" position="inside"> | ||
<div | ||
class="app_settings_block" | ||
data-string="Rental" | ||
string="Rental" | ||
data-key="rental_base" | ||
> | ||
<h2>Product</h2> | ||
<div class="row mt16 o_settings_container"> | ||
<div class="col-12 col-lg-6 o_setting_box"> | ||
<div class="o_setting_left_pane"> | ||
<field name="group_product_variant" /> | ||
</div> | ||
<div class="o_setting_right_pane"> | ||
<label for="group_product_variant" /> | ||
<div class="text-muted"> | ||
Configure your products with variants | ||
</div> | ||
<div class="o_setting_right_pane"> | ||
<label for="group_product_variant" /> | ||
<div class="text-muted"> | ||
Configure your products with variants | ||
</div> | ||
<div | ||
class="content-group" | ||
attrs="{'invisible': [('group_product_variant','=',False)]}" | ||
> | ||
<div class="mt16"> | ||
<button | ||
name="%(product.attribute_action)d" | ||
icon="fa-arrow-right" | ||
type="action" | ||
string="Attributes" | ||
class="btn-link" | ||
/> | ||
</div> | ||
<div | ||
class="content-group" | ||
attrs="{'invisible': [('group_product_variant','=',False)]}" | ||
> | ||
<div class="mt16"> | ||
<button | ||
name="%(product.attribute_action)d" | ||
icon="fa-arrow-right" | ||
type="action" | ||
string="Attributes" | ||
class="btn-link" | ||
/> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</xpath> | ||
</field> | ||
</record> | ||
|
||
<record id="action_rental_configuration" model="ir.actions.act_window"> | ||
<field name="name">Settings</field> | ||
<field name="type">ir.actions.act_window</field> | ||
<field name="res_model">res.config.settings</field> | ||
<field name="view_mode">form</field> | ||
<field name="target">inline</field> | ||
<field name="context">{'module' : 'rental_base'}</field> | ||
</record> | ||
</div> | ||
</xpath> | ||
</field> | ||
</record> | ||
|
||
</data> | ||
<record id="action_rental_configuration" model="ir.actions.act_window"> | ||
<field name="name">Settings</field> | ||
<field name="type">ir.actions.act_window</field> | ||
<field name="res_model">res.config.settings</field> | ||
<field name="view_mode">form</field> | ||
<field name="target">inline</field> | ||
<field name="context">{'module' : 'rental_base'}</field> | ||
</record> | ||
</odoo> |
Oops, something went wrong.