Odoo Help

0

How to add a new journal entry from a custom module?

By
Silviaa
on 10/31/16, 7:14 AM 1,731 views

I created a custom module in odoo 9.I wanted to add a new journal entry from this module.But i don't know how to do this. can anyone help me.

Import from csv file?

Artem
on 10/31/16, 9:08 AM

No i need to do this from python code

Silviaa
on 11/1/16, 12:10 AM
7

Cybrosys Technologies

--Cybrosys Technologies--
1223
| 2 2 4
Calicut, India
--Cybrosys Technologies--

Cybrosys Technologies is a private limited ISO certified company in Technology and Software Engineering sector. We serve as one of the best and trusted Odoo official partner, providing ultimate Customization and Implementation services in Odoo ERP. A frequent contributor to Odoo Apps, our customized free apps are downloaded by more than one lakh users. Most of our apps augment the potentialities of Odoo and are trending in the Odoo app store.

Cybrosys keeps privilege to be one among the finest Odoo Official Partners with 200+ free apps contribution towards the Odoo community. Cybrosys also stands number one in Odoo-social Media Integration empowering every kind of business solutions.

We are also enriched with highly skilled UI/UX technical experts for Developing, Implementing and Designing, thereby providing ultimate benefit to our customer base.

Today Cybrosys has reached par excellent in Odoo Implementation and allied services, proving its credibility and reliability. Our proven services are used by customers sprawling across 160+ countries including Middle East, African continents, UK, Germany, Spain, Thailand, Hong Kong, New Zealand, Australia, Malaysia, Singapore, Egypt etc.

We are rapidly expanding our base with robust quality management and business process re-engineering to meet the ultimate customer desire.

To know more about Cybrosys Technologies and our Odoo Apps, Kindly visit:

Cybrosys Technologies 

Odoo Apps 

And inbox us your queries to odoo@cybrosys.com

Cybrosys Technologies
On 11/1/16, 12:44 AM

Hi silviaa...
We hope this will help you..


l1 = {

 'name': line.name,
 'debit': line.debit,
 'credit': line.credit,
 'account_id': line.account_id.id,
 'partner_id': partner,
 'ref': record.ref,
 'date': record.date,
 'date_maturity': line.date_maturity,
 'currency_id': line.currency_id.id,
 'amount_currency': 0.0,
 'company_id': company_id,}

 l2 = {

'name': line.name,

'debit': line.credit,

'credit': line.debit,

'account_id': acc_id,

'partner_id': partner,

'ref': record.ref,

'date': record.date,

'date_maturity': line.date_maturity,

'currency_id': line.currency_id.id,

'amount_currency': 0.0,

'company_id': company_id,

'analytic_account_id': an_acc_id }

move_lines.extend(((0, 0, l1), (0, 0, l2))) 

move = self.pool.get('account.move').create(cr, uid,{ 'ref': record.ref, 'line_id': move_lines, 'journal_id': record.journal_id.id, 'period_id': record.period_id.id, 'date': record.date, })

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 10/31/16, 7:14 AM
Seen: 1731 times
Last updated: 11/11/16, 7:00 AM