Compare commits
1 Commits
14.0-accou
...
14.0-imp-u
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6860ca5574 |
@@ -242,17 +242,6 @@ 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,9 +70,6 @@
|
|||||||
<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>
|
||||||
|
|
||||||
|
|||||||
@@ -22,6 +22,7 @@
|
|||||||
'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,
|
||||||
}
|
}
|
||||||
|
|||||||
15
sale_usability/views/res_partner.xml
Normal file
15
sale_usability/views/res_partner.xml
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
<?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>
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
# Copyright 2021 Akretion
|
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
||||||
|
|
||||||
{
|
|
||||||
"name": "Shopinvader Usability",
|
|
||||||
"description": """
|
|
||||||
Shopinvader Usability""",
|
|
||||||
"version": "14.0.1.0.0",
|
|
||||||
"license": "AGPL-3",
|
|
||||||
"author": "Akretion",
|
|
||||||
"website": "https://github.com/OCA/odoo-usability",
|
|
||||||
"depends": [
|
|
||||||
"shopinvader",
|
|
||||||
"sale_usability",
|
|
||||||
],
|
|
||||||
"data": ["views/sale_views.xml"],
|
|
||||||
"auto_install": True,
|
|
||||||
}
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
|
||||||
<!-- Copyright 2021 Akretion
|
|
||||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
|
|
||||||
<odoo>
|
|
||||||
<record id="sale.action_quotations" model="ir.actions.act_window">
|
|
||||||
<field
|
|
||||||
name="domain"
|
|
||||||
>['&', ('state', 'in', ('draft', 'sent', 'cancel')), ('typology', '=', 'sale')]</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
<record id="sale.action_quotations_with_onboarding" model="ir.actions.act_window">
|
|
||||||
<field
|
|
||||||
name="domain"
|
|
||||||
>['&', ('state', 'in', ('draft', 'sent', 'cancel')), ('typology', '=', 'sale')]</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
<record id="sale.action_quotations_salesteams" model="ir.actions.act_window">
|
|
||||||
<field
|
|
||||||
name="domain"
|
|
||||||
>['&', ('state', 'in', ('draft', 'sent', 'cancel')), ('typology', '=', 'sale')]</field>
|
|
||||||
</record>
|
|
||||||
</odoo>
|
|
||||||
Reference in New Issue
Block a user