Compare commits
1 Commits
14.0-pos-u
...
14.0-accou
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a59c2e774a |
@@ -242,6 +242,17 @@ class AccountMoveLine(models.Model):
|
|||||||
compute='_compute_reconcile_string', string='Reconcile', store=True)
|
compute='_compute_reconcile_string', string='Reconcile', store=True)
|
||||||
# for optional display in tree view
|
# for optional display in tree view
|
||||||
product_barcode = fields.Char(related='product_id.barcode', string="Product Barcode")
|
product_barcode = fields.Char(related='product_id.barcode', string="Product Barcode")
|
||||||
|
balance = fields.Monetary(
|
||||||
|
string='Balance',
|
||||||
|
default=0.0,
|
||||||
|
currency_field='company_currency_id',
|
||||||
|
compute="_compute_balance",
|
||||||
|
store=True)
|
||||||
|
|
||||||
|
@api.depends("credit", "debit")
|
||||||
|
def _compute_balance(self):
|
||||||
|
for line in self:
|
||||||
|
line.balance = line.debit - line.credit
|
||||||
|
|
||||||
def show_account_move_form(self):
|
def show_account_move_form(self):
|
||||||
self.ensure_one()
|
self.ensure_one()
|
||||||
|
|||||||
@@ -70,6 +70,9 @@
|
|||||||
<field name="matching_number" position="after">
|
<field name="matching_number" position="after">
|
||||||
<button title="View Journal Entry Form" type="object" name="show_account_move_form" icon="fa-arrow-right"/>
|
<button title="View Journal Entry Form" type="object" name="show_account_move_form" icon="fa-arrow-right"/>
|
||||||
</field>
|
</field>
|
||||||
|
<field name="credit" position="after">
|
||||||
|
<field name="balance" sum="Balance" />
|
||||||
|
</field>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
|
|||||||
@@ -15,20 +15,6 @@
|
|||||||
<button name="show_journal_items" position="after">
|
<button name="show_journal_items" position="after">
|
||||||
<button name="%(point_of_sale.action_report_pos_order_all)d" type="action" class="oe_stat_button" icon="fa-table" string="Stats" context="{'search_default_session_id': active_id}"/>
|
<button name="%(point_of_sale.action_report_pos_order_all)d" type="action" class="oe_stat_button" icon="fa-table" string="Stats" context="{'search_default_session_id': active_id}"/>
|
||||||
</button>
|
</button>
|
||||||
<xpath
|
|
||||||
expr="//field[@name='cash_register_total_entry_encoding']/parent::group"
|
|
||||||
position="before"
|
|
||||||
>
|
|
||||||
<group>
|
|
||||||
<field
|
|
||||||
style="text-align:right;margin:0;padding:0;"
|
|
||||||
name="cash_register_balance_start"
|
|
||||||
widget="monetary"
|
|
||||||
options="{'currency_field': 'currency_id'}"
|
|
||||||
string="Starting Balance"
|
|
||||||
/>
|
|
||||||
</group>
|
|
||||||
</xpath>
|
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
|
|||||||
@@ -32,7 +32,6 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
|
|||||||
'views/product_pricelist_item.xml',
|
'views/product_pricelist_item.xml',
|
||||||
'views/product_template_view.xml',
|
'views/product_template_view.xml',
|
||||||
'views/product_product.xml',
|
'views/product_product.xml',
|
||||||
'views/uom_uom.xml',
|
|
||||||
'views/product_category_view.xml',
|
'views/product_category_view.xml',
|
||||||
],
|
],
|
||||||
'installable': True,
|
'installable': True,
|
||||||
|
|||||||
@@ -30,4 +30,3 @@ class ProductTemplate(models.Model):
|
|||||||
sale_ok = fields.Boolean(tracking=80)
|
sale_ok = fields.Boolean(tracking=80)
|
||||||
purchase_ok = fields.Boolean(tracking=90)
|
purchase_ok = fields.Boolean(tracking=90)
|
||||||
active = fields.Boolean(tracking=100)
|
active = fields.Boolean(tracking=100)
|
||||||
company_id = fields.Many2one(tracking=110)
|
|
||||||
|
|||||||
@@ -1,22 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<!--
|
|
||||||
Copyright 2022 Akretion France (http://www.akretion.com/)
|
|
||||||
@author: Alexis de Lattre <alexis.delattre@akretion.com>
|
|
||||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
||||||
-->
|
|
||||||
|
|
||||||
<odoo>
|
|
||||||
|
|
||||||
<!-- When the module stock and sale are not installed,
|
|
||||||
there is no menu entry for UoM ! These menu entry fixes this -->
|
|
||||||
|
|
||||||
<menuitem id="uom_config_menu" parent="base.menu_custom"
|
|
||||||
name="Units of Measure" sequence="150"/>
|
|
||||||
|
|
||||||
<menuitem id="uom_categ_config_menu" parent="uom_config_menu"
|
|
||||||
action="uom.product_uom_categ_form_action" sequence="10" />
|
|
||||||
|
|
||||||
<menuitem id="uom_uom_config_menu" parent="uom_config_menu"
|
|
||||||
action="uom.product_uom_form_action" sequence="20" />
|
|
||||||
|
|
||||||
</odoo>
|
|
||||||
@@ -22,7 +22,6 @@
|
|||||||
'views/product_pricelist_item.xml',
|
'views/product_pricelist_item.xml',
|
||||||
'views/account_move.xml',
|
'views/account_move.xml',
|
||||||
'views/res_company.xml',
|
'views/res_company.xml',
|
||||||
"views/res_partner.xml",
|
|
||||||
],
|
],
|
||||||
'installable': True,
|
'installable': True,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,15 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<odoo>
|
|
||||||
|
|
||||||
<record id="res_partner_view_team" model="ir.ui.view">
|
|
||||||
<field name="model">res.partner</field>
|
|
||||||
<field name="inherit_id" ref="sales_team.res_partner_view_team" />
|
|
||||||
<field name="arch" type="xml">
|
|
||||||
<!-- team_id should be visible in no developper mode -->
|
|
||||||
<field name="team_id" position="attributes">
|
|
||||||
<attribute name="groups"/>
|
|
||||||
</field>
|
|
||||||
</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
</odoo>
|
|
||||||
Reference in New Issue
Block a user